This is an old revision of the document!
I stumble across XML documents intermittently and every time I need to review the basics again. This is a cheat sheet so that I can review it whenever I need to. Information here is a summarized form of the XML Tutorial
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE note SYSTEM "InternalNote.dtd"> <note date="12/11/2002"> <to>Alice</to> <from>Bob</from> <par>Hi.</par> <par>Bye.</par> </note>
<h:table xmlns:h="http://www.w3.org/TR/html4/">
<h:tr>
<h:td>Apples</h:td>
<h:td>Bananas</h:td>
</h:tr>
</h:table>
<!DOCTYPE root-element [ element-declarations ]>
or externally defined e.g.
<!DOCTYPE root-element SYSTEM "filename.dtd">
where the element-declarations are in filename.dtd
<!ELEMENT note (to,from)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)>
This says that note contains 2 child elements and to and from are of type #PCDATA
<?xml-stylesheet type="text/css" ref="simple.css"?>
<?xml-stylesheet type="text/xsl" href="simple.xsl"?>