www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3088] New: std.xml.check() fails on xml comments

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: andrew.talbot 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: -------
Jun 23 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3088



--- Comment #1 from Bernard Helyer <blood.of.life gmail.com> 2009-10-19
05:46:26 PDT ---
Changed this to all, because it happens over here (x86) too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 19 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3088


Shin Fujishiro <rsinfu gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |rsinfu gmail.com
         AssignedTo|nobody puremagic.com        |rsinfu gmail.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 23 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3088


Shin Fujishiro <rsinfu gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Shin Fujishiro <rsinfu gmail.com> 2010-05-23 21:33:21 PDT
---
Fixed in svn r1549.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 23 2010