<!doctype html> <html version="-//W3C//DTD HTML Experimental 970324//EN"> <head> <title>Simple XML/title> </head> <body bgcolor="#ffffff"> <p class="nav"><img alt="W3C" src="../Icons/WWW/w3c_home"/> <a href="../"><img src="../TR/WWWicn/home.gif" alt="home"> W3C</a> <a href="notes.html"><img src="../TR/WWWicn/parent.gif" alt="parent"/> XML</a></p> <h1>Simple XML</h1> <p>This simplified version on XML is a variant of the proposed <a href="/pub/WWW/TR/WD-xml">XML language</a>. It removes some features and adds a few others. It mainly differs from XML in these aspects:</p> <ul> <li><p>Seperation between lexical part and grammar part means that is much easier to parse. The grammar has just 16 productions and is LL(1).</p></li> <li><p>There is no distinction between <;foo></foo> and <foo/>, they can be used interchangeably.</p></li> <li><p>Documents can be nested: there may be <!doctype> declarations in the middle of a document.</p></li> <li><p>Default attribute declarations are scoped: they are valid until the end of the current element or doctype.</p></li> <li><p>Whitespace handling is simplified: a newline immediately before a `<' and a newline immediately after a `>' are ignored; no other whitespace is ignored by the parser (i.e., all other whitespace is passed on to the application).</p></li> <li><p>Only character entities are allowed, no other types of entities exist.</p></li> <li><p>There is no internal document type subset. The allowed structure of the document can only be specified in a separate document.</p></li> </ul> <h2>Examples</h2> <p>A few examples of XML files:</p> <ol> <li><p><a href="example1.html">A document</a> with all the information in the attributes.</p></li> <li><p><a href="example2.html">The current document</a> in XML syntax.</p></li> </ol> <p>I'm still working on a replacement for the DTD syntax, that would allow content models and attribute sets for elements to differ based on context. It would basically be an EBNF variant, with a few handy abbreviations for common constructs like start tags and end tags.</p> <hr/> <address><a href="mailto:bert@w3.org">Bert Bos</a></address> <!-- Created: Fri Apr 25 18:42:32 MET DST 1997 --> <!-- hhmts start --> Last modified: Fri Apr 25 19:09:38 MET DST <!-- hhmts end --> </body> </html> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-declaration:"~/SGML/html.decl" sgml-default-doctype-name:"html" sgml-minimize-attributes:t sgml-nofill-elements:("pre" "style" "br") sgml-live-element-indicator:t End: -->
Note that there isn't much difference between the HTML and XML versions.
Last modified: Tue Oct 14 20:01:59 MET DST