Re: MicroXML parser in JavaScript

James Clark scripsit:

> To play with this, download microxml.js and test.html, and then open
> test.html in a modern browser.  It will give you a text box in which
> you can type MicroXML.  There's a button to parse it, which will show
> you the data model in JSON syntax. or an error. So far it is only very
> lightly tested.

I fed the MicroLark test suite, which is derived from the W3C XML test
suite, through it.  All the "good" files are parsed and all but two of
the "bad" files generate errors.  What I don't know yet is if the "good"
files are parsed correctly.

The two "bad" files in question are both of the form "<?A/>", where
? represents a character which is a nameChar but not a nameStartChar.
The specific characters are #x47 and #x300.

-- 
John Cowan    http://ccil.org/~cowan    cowan@ccil.org
Mr. Henry James writes fiction as if it were a painful duty.  --Oscar Wilde

Received on Monday, 24 September 2012 08:11:08 UTC