[Issue 1925] New: Not all xml empty tags are recognized

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 15 14:12:53 PDT 2008


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

           Summary: Not all xml empty tags are recognized
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: ar_other at mail.ru


If empty tag in xml document doesn't have space before '/' symbol parser treats
is as a start tag. E.g. <b/> is recognized as a start tag which name is 'b/',
but <b /> is parsed correctly.

It seems that '/' symbol must be added to string "^>" in line #786 in
std\xml.d.
  name = munch(s,"^>"~whitespace);
=>
  name = munch(s,"^>/"~whitespace);


-- 



More information about the Digitalmars-d-bugs mailing list