Summary: XML parser in std.xml throws TagException if the attr
                    value is put in apostrophes.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos

--- Comment #0 from Mitu <> 2010-07-26 10:24:43 PDT ---
The best way to illustrate this error is this code:

import std.xml;

void main()
    string goesRight = `<?xml version='1.0' encoding='UTF-8'?><stream:stream
xmlns:stream=""; xmlns="jabber:client"
from="" id="587a5767" xml:lang="en" version="1.0"></stream:stream>`;
    string goesWrong = `<?xml version='1.0' encoding='UTF-8'?><stream:stream
xmlns:stream='' xmlns='jabber:client'
from='' id='587a5767' xml:lang='en' version='1.0'></stream:stream>`;

    DocumentParser parser = new DocumentParser(goesRight);

It creates a DocumentParser object and shuts down. But when change the
constructor argument to goesWrong (the only difference between the two strings
are " changed to '. Please note that in the prologue it doesn't matter), it
results in TagError.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to