[XML-SIG] Useless fun thing for XML - comments or helpers?

Mark Hammond MHammond@skippinet.com.au
Thu, 3 Sep 1998 23:49:21 +1000


Thanks Lars and Sean! And Fredrik doesnt mess around - Thanks! :-)

OK - Here is a simple DTD Ive come up with based on Fredriks code.  If you
havent run it, it will generate something like:
 <node>
  <name>Python</name>
  <bookmark>
   <name>Aussie Mirror - Python Language Website</name>
   <url>http://mirror.aarnet.edu.au/pub/python/www.python.org/</url>
  </bookmark>
...

Here is my simple DTD, using Lars' "XBEL":-).  Any comments? Its all way too
simple :-)  Then I'll have to knock up a tool to parse these back to a file
structure on disk, and also something to generate a .html representation of
the tree...

Thanks,

Mark.

<!-- DTD for XBEL - XML Bookmark Exchange Language -->

<!ELEMENT XBEL     (INFO, NODE+)>
<!ELEMENT NODE     (NAME, BOOKMARK+)>

<!ELEMENT BOOKMARK (NAME, URL)>

<!ELEMENT INFO     (OWNER, MACHINE, VERSION, DATE?)>

<!ELEMENT OWNER    (#PCDATA)>
<!ELEMENT MACHINE  (#PCDATA)>
<!ELEMENT VERSION  (#PCDATA)>
<!ELEMENT DATE     (#PCDATA)>


<!ELEMENT NAME     (#PCDATA)>
<!ELEMENT URL      (#PCDATA)>