DTD and fixed XML example for map file

Doug Nebert ddnebert at usgs.gov
Tue May 16 08:37:01 PDT 2000


Found a neat validator/DTD generator at: 
http://www.pault.com/Xmltube/dtdgen.html

Attached are a validated XML instance file and the DTD generated from 
it. Note that DTD elements are presented in alphabetic order rather than 
in logical order. Read the results carefully!

However, when an item shows up as a part of another item (e.g.) WEB has 
HEADER and TEMPLATE, the parsing expected order of these subfields is 
rigorous in XML 1.0. You can't, say, legally switch the order of 
occurence of TEMPLATE and HEADER in a picky parser. I imagine future 
implementations based on XML-Schema will relax the element order and 
case sensitivity requirements of the current generation.

--
Douglas D. Nebert
Clearinghouse Coordinator
FGDC Secretariat	Phone: +1 703 648 4151	Fax: +1 703 648-5755	
Pager Messaging: 	http://clearinghouse3.fgdc.gov/dougmsg.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.xml
Type: text/xml
Size: 2935 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20000516/4fc52805/attachment.xml>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mapserv.dtd
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20000516/4fc52805/attachment.ksh>


More information about the MapServer-users mailing list