std.xml2 candidate

Michael Rynn michaelrynn at optusnet.com.au
Sat Dec 11 05:23:13 PST 2010


Availability of Updated xml parser for D2,   
	organised very presumptively as std.xml2

Downloadable with SVN. 

svn co http://svn.dsource.org/projects/xmlp/trunk/std
(release 20).

This imports a conventional DOM of linked nodes -- std.xmlp.linkdom
A Core parser which emits parsed items -- std.xmlp.coreparse.
A validating parser including DOCTYPE validation. std.xmlp.domparse.

Performance seems not too bad.  There are more lines of code, 
but it does the same work of std.xml in about 65% of the time.

Well-formed-ness check is done during the parse, so there is no need to
do separate check. 

It takes string inputs  or file inputs in various encodings.

The DOMErrorHandler DOM interface is included 
	in the Validating parser for the linkdom.

The parsers and DOM have a straight forward interface.

There is aso a very nearly compatible version of the DOM used in std.xml. 
-- std.xmlp.arraydom.  
The arraydom DocumentParser is also faster than the std.xml,
	 as it uses the std.xmlp.coreparse.

Its not complete or final, nor much reviewed.

The layout and interfaces seem to be OK.
I expect its already more useful than std.xml.

Michael Rynn.



More information about the Digitalmars-d-announce mailing list