Comment #0 by andrew.talbot — 2009-06-23T14:32:40Z
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
Comment #1 by b.helyer — 2009-10-19T05:46:26Z
Changed this to all, because it happens over here (x86) too.