On Tue, Jul 21, 2009 at 11:53 PM, Brad Roberts<bra...@puremagic.com> wrote: > Jesse Phillips wrote: >> On Wed, 22 Jul 2009 01:37:38 +0100, Stewart Gordon wrote: >> >>> Jesse Phillips wrote: >>>> According to the documentation having & in a tag will be turned to >>>> & >>>> >>>> http://digitalmars.com/d/2.0/phobos/std_xml.html#text >>>> >>>> I observe that this is not the case. And if an attribute contains & >>>> it is turned into &amp; What is the best way to receive the same >>>> output for both. The code that follows outputs >>>> >>>> Attr: What &amp; Up >>>> Elem: What & Up >>>> >>>> >>>> >>>> *testfile.xml:* >>>> >>>> <?xml version="1.0" encoding="utf-8"?> <Tests> >>>> <Test thing="What & Up">What & Up</Test> >>>> </Tests> >>> Clearly std.xml is buggy. Correct behaviour would be >>> >>> Attr: What & Up >>> Elem: What & Up >>> >>> The best place for bug reports is >>> >>> http://d.puremagic.com/issues/ >>> >>> Stewart. >> >> http://d.puremagic.com/issues/show_bug.cgi?id=3200 >> http://d.puremagic.com/issues/show_bug.cgi?id=3201 > > The xml parsing code in D2 could use some love and care. It was originally > written by Janice who seems to have dropped off the face of the planet. It's > little more than a first draft with serious performance problems and several > important bugs. > > Anyone want to volunteer to invest some time in improving it?
I don't mean to shoot down the idea? But Tango already has three XML parsers which are, like, the fastest. Ever. http://dotnot.org/blog/archives/2008/03/04/xml-benchmarks-updated-graphs/ I'm just saying, it'd seem like pointless duplication of effort with such parsers _already available_. If it could be relicensed, I'd say that's the best route.