[Issue 11005] New: std.xml does not encode attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 10 00:09:38 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11005
Summary: std.xml does not encode attributes
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2013-09-10 00:09:37 PDT ---
This program:
import std.xml;
import std.stdio;
void main()
{
string s = `<tag attr=""value>"></tag>`;
auto doc = new Document(s);
writeln("attr = ", doc.tag.attr["attr"]);
writeln(doc);
}
compiles and runs with output
attr = "value>
<tag attr=""value>" />
The expected output is
attr = "value>
<tag attr=""value>" />
The xml writer does not encode " and < of the stribute string (actually, it
decaodes them again).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list