XML D2.x parsing &
Stewart Gordon
smjg_1998 at yahoo.com
Tue Jul 21 17:37:38 PDT 2009
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 & What is the best way to receive the
> same output for both. The code that follows outputs
>
> Attr: What & 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.
More information about the Digitalmars-d-learn
mailing list