473,480 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML Schema for Web Help

Hello,
Can anyone tell me how to write a schema for something like this? Im
trying to write a webhelp setup and decided to go with a book chapter
theme but i need to constrain this template to prevent errors and
provide a log for users down the road.

<?xml version="1.0" encoding="utf-8"?>
<template name="" id="1" flags="0" owner="">
<volume name="" control="" location="local" id="1" flags="0">
<!-- optional: if volume is local allow-->
<!--optional-->
<page id="1" name="" order="1" location="local" flags="0">
<content><![CDATA[Text]]>Walk</content>
</page>
<!--end optional-->
<book name="" order="1" id="1" flags="0">
<!--constraint: if exists book name must be filled-->
<!--optional-->
<page id="2" order="1" name="" location="local" flags="0">
<content><![CDATA[Text Here]]></content>
</page>
<!--end optional-->
<!--constraint:"if name is filled but empty flags=1"-->
<chapter name="" order="1" id="1" flags="0">
<!--constraint: if exists chapter name must be filled-->
<!--optional-->
<page id="3" order="1" name="" location="local" flags="0">
<content><![CDATA[Other]]></content>
</page>
<!--end optional-->
<!--end constraint-->
<chapter name="" order="1" id="2" flags="0">
<!--constraint: if exists chapter name must be filled-->
<!--optional-->
<page id="4" order="1" name="" location="local" flags="0">
<content><![CDATA[Text2]]></content>
</page>
<!--end optional-->
<!--end constraint-->
</chapter>
</chapter>
<!--end constraint-->
</book>
<!--end optional-->
</volume>
<currentflags>
<flag flagid="1" type="1" resolved="false"/>
</currentflags>
<flagtypes>
<flagtype typeid="1" name="Chapter" description="In order for a
Chapter to have content it must be named"/>
</flagtypes>
<changelog startdate="" lastchanged="">
<change changeid="1" changedby="" changedate="" changed="">
<![CDATA[Text There]]>
</change>
</changelog>
</template>
I appreciate any help i can get ive been reading up on some xml schema
stuff but right now it all seems greek to me

Aug 17 '06 #1
0 1037

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4194
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
6
2476
by: Pieter | last post by:
I've read a lot of posts on "why relax ng is so very good" and on "why w3c xml schema should be the only schema language". I'm, however, still not clear on why I should prefer one over the other. ...
4
2368
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
8
2773
by: Poonam | last post by:
Hi, Can some one please help me with (or point me to) a very simple but working code sample that shows how to import XML Schema. I have tried many samples out there on internet but nothing seems...
0
1702
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
2
10736
by: Vagabond Software | last post by:
I have translated a DTD to an XML Schema (XSD) file by hand, and the Schema View in Visual Studio .NET 2003 seems to diplay everything properly. However, when I specify the schemalocation in my...
6
2553
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a...
0
1080
by: comic_rage | last post by:
Hi, I need to use C# to print the xml schema root <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://www.ciber.com/myfile" xmlns="http://www.ciber.com/myfile"...
4
2267
by: bibsoconner | last post by:
Hi, I hope someone can please help me. I'm having a lot of trouble with schema files in .NET. I have produced a very simple example that uses "include" to include other schema files. It all...
4
2598
by: cmc | last post by:
I need some clarification to help me understand the DB2 strucure more. The questions are about "implicit schema" 1. This is a very interest concpet that DB2 let every user to create new schema...
0
7048
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6911
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
6966
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.