[Issue 3088] New: std.xml.check() fails on xml comments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 23 14:32:41 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3088
Summary: std.xml.check() fails on xml comments
Product: D
Version: 2.030
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrew.talbot at talbotville.com
std.xml.check() seems not to recognize the end of an xml comment. For example,
when the following code is run with the given data file it produces the error
messages shown below.
prog.d:
import std.xml;
void main()
{
string s = cast(string)std.file.read("data.xml");
check(s);
}
data.xml:
<?xml version="1.0"?>
<set>
<one>A</one>
<!-- comment -->
<two>B</two>
</set>
Output messages:
Line 5, column 16: Expected literal "-->"
Line 5, column 16: Literal
Line 4, column 5: Comment
Line 4, column 5: Content
Line 2, column 1: Element
Line 1, column 1: Document
--
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