[Issue 2063] New: std.xml access violation for nested, closed tags

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 2 07:11:03 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2063

           Summary: std.xml access violation for nested, closed tags
           Product: D
           Version: 2.013
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: gaboonviper at gmx.net


If a closed <node/> is written inside another node, an access violation occurs
in the constructor of the xml document document.

works:
        <?xml version="1.0"?><tag/>

doesn't work:
        <?xml version="1.0"?><something><tag/></something>

this was tested using the following setup:

import std.stdio;
import std.file;
import std.xml;

void main{
    string s = cast(string)std.file.read("widget2.xml");

    check(s);

    auto doc = new Document(s);

    writefln(doc);
}

Cheers,
Boyd


-- 



More information about the Digitalmars-d-bugs mailing list