[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Schema?!(xml)

  • From: vishal sharan <mettlus@y...>
  • To: xml-dev@i...
  • Date: Tue, 31 Aug 1999 14:07:32 -0700 (PDT)

dfm to xml
Hello everyone! can I get some help in validating a schema?? I have
trying to write a schema in xml, I wanna validate it so that its a
correct schema.

Thx
Vishal
The attempted schema is here

<?xml version="1.0"?>
<PKT N="WDogSystemInit">
  <NSP N="SKUP">
    <NSP N="DataPump">
		<GRP>
		<HDR>
			<DSC T="LST" N="bla bla bla" R="t">
			<DFM/>
			</DSC>
		</HDR>
		<BDY>
			<LST N="bla bla bla">
			<L I="1">googoo</L>
			<L I="2">abracadabra</L>
			<L I="3">open sesame</L>
			<L I="4">baboom</L>
			<L I="5">break on through to the other side</L>
			</LST>
		</BDY>
		</GRP>
    </NSP> <!-- End of the data pump namespace -->
	<NSP N="WDog">
	  <GRP>
		<COMMENTS>
			<P><L>WDog is a COM component			process space.</L>
			<L>In the event of exceptional behavior -- i.e. error conditions
etc. it will take actions according to the initialization instructions
it has been insantiated with.</L>
			</P>
		</COMMENTS>
		<HDR><!-- contains descriptors -->
			<!-- descriptor for one pathname - path value record pair -->
			<DSC T="RCD" N="PathRecord" NSP="SKUP::WDog">
			  <DFM T="F" I="2"/>
			  <F N="NameOfPath" R="t"><DFM T="str" MXL="63" MIN="32"
MAX="120"/></F>
			  <F N="Path" R="t"><DFM T="str" MXL="255" MIN="32" MAX="120"/></F>
			</DSC>
			<!-- descriptor for a table of PathRecord type records -->
			<DSC T="TBL" N="Paths" ID="0F46F8D3-5693-11d3-A67C-0050046C4B19" 
NSP="SKUP::WDog" R="t">
			  <DFM T="RCD" N="PathRecord" MIN="0" MAX="10"/>
			</DSC>
			<!-- descriptor for a SysMsg table & its' record type -->
			<DSC T="RCD" N="SysMsgRec" 
ID="040911A4-D2DB-4a84-BD58-0B1012FFDF19" NSP="SKUP::WDog">
			  <DFM T="F" I="4"/>
			  <F N="MsgNumber" R="t"><DFM T="UINT" MIN="0" MAX="100" /></F>
			  <F N="MsgDescriptor" R="t"><DFM T="str" MXL="255" MIN="32"
MAX="120" /></F>
			  <F N="MsgTypeCode" R="t"><DFM T="char" SET="(,){I,W,E,N}" /></F>
			  <F N="OptionalMsg" R="f"><DFM T="str" MXL="1024" MIN="32"
MAX="120" /></F>
			</DSC>
			<!-- descriptor for a System message table -->
			<DSC T="TBL" N="SysMsg" ID="1CA51EA1-5699-11d3-A67C-0050046C4B19"
NSP="SKUP::WDog" R="t">
			  <DFM T="RCD" N="SysMsgRec" MIN="0" MAX="100"/>
			</DSC>
		</HDR>
		<BDY>
			<TBL N="Paths" ID="0F46F8D3-5693-11d3-A67C-0050046C4B19">
			  <R I="1"><F I="1">RootPath</F><F I="2">D:\~Dev\WatchDog</F></R>
			  <R I="2"><F I="1">LogPath</F><F I="2">log</F></R>
			  <R I="3"><F I="1">ExceptionPath</F><F I="2">Err</F></R>
			</TBL>
			<TBL N="SysMsg" ID="1CA51EA1-5699-11d3-A67C-0050046C4B19">
			  <R I="1"><F I="1">01</F><F I="2">Null Message</F><F I="3">N</F><F
I="4"/></R>
			  <R I="2"><F I="1">02</F><F I="2">okay</F><F I="3">I</F><F
I="4">this is an optional message for this particular system
message</F></R>
			  <R I="3">
               <F I="1">03</F>
<F I="2">okay false</F>
<F I="3">I</F>
<F I="4"/></R>
<R I="4">
<F I="1">04</F>
<F I="2">Unknown Error</F>
<F I="3">W</F>
<F I="4">this is an unknown error optional message!!!!!</F></R>
			</TBL>
		</BDY>
	  </GRP>
	</NSP> <!-- end of the WDog namespace -->
  </NSP> <!-- end of the skup namespace -->
</PKT> <!-- end of the WDogSysInit packet -->





__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.