Yax: Yet another XML Framework

 

YAX includes a XMLParser with SAX and DOM support, a XMLWriter and the start of a framework for XML data binding. The parser is based partly on the comanche xml implementation, mainly the tokenizer.

The SAXDriver/Handler implements the revised SAX2 API. The parser now is pretty complete including parsing of DTDs and fully parses DTDs but doesn't do verification yet.

What's missing/buggy

I haven't completely run the test suites yet, but except for 16 bit character support the parser correctly parses all valid standalone XML documents in James Clark's test suite as well as the xml dtd itself: http://www.w3.org/XML/1998/06/xmlspec-v21.dtd

Examples

XMLTokenizer exampleAddressBook
parses an example taken from the IBM alphaworks xeena project.

XMLDOMParser addressBookXMLWithDTD
parses the same example into a DOM structure using the SAXDriver and the DOMParser being an implementation of a SAXHandler.

Download

Change set: yax.zip and you also need SocketStream.zip.

A few examples

A first stab at a test suite (not SUnit yet)