digitalmars.D.bugs - [Issue 3201] New: std.xml incorrectly converts symbols in attributes, & -> &amp
- d-bugmail puremagic.com Jul 21 2009
- d-bugmail puremagic.com Jul 21 2009
- d-bugmail puremagic.com Jul 27 2009
- d-bugmail puremagic.com Apr 05 2010
- d-bugmail puremagic.com Aug 20 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3201 Summary: std.xml incorrectly converts symbols in attributes, & -> &amp Product: D Version: 2.031 Platform: Other OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: Jesse.K.Phillips+D gmail.com CC: Jesse.K.Phillips+D gmail.com The example code below will output: Attr: What &amp; Up Elem: What & Up Expected: Attr: What & Up Elem: What & Up *testfile.xml:* <?xml version="1.0" encoding="utf-8"?> <Tests> <Test thing="What & Up">What & Up</Test> </Tests> *test.d:* import std.stdio; import std.xml; void main() { auto file = "testfile.xml"; auto s = cast(string)std.file.read(file); auto xml = new DocumentParser(s); xml.onStartTag["Test"] = (ElementParser xml) { writeln("Attr: ", xml.tag.attr["thing"]); }; xml.onEndTag["Test"] = (in Element e) { writeln("Elem: ", e.text); }; xml.parse(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 21 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3201 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |andrei metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 21 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3201 --- Comment #1 from Sobirari Muhomori <maxmo pochta.ru> 2009-07-27 02:50:24 PDT --- I found it in bug 2979: for some reason encode function is used to unescape attribute value. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 27 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3201 Rainer Schuetze <r.sagitario gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |r.sagitario gmx.de --- Comment #2 from Rainer Schuetze <r.sagitario gmx.de> 2010-04-05 10:03:14 PDT --- As the test case was the same in #3200, I've attached the patch that fixes both there -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 05 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3201 Rainer Schuetze <r.sagitario gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Rainer Schuetze <r.sagitario gmx.de> 2010-08-20 05:31:37 PDT --- Fixed in 2.047 together with bug 3200 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 20 2010









d-bugmail puremagic.com 