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 &amp; Up">What &amp; 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.

Reply via email to