Changeset 491 for todo/trunk/util

Show
Ignore:
Timestamp:
12/26/07 22:39:19 (1 year ago)
Author:
athomas
Message:

Dev Todo: Applied patch from okan@demirmen.com. Fixes #54.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • todo/trunk/util/XML.cc

    r443 r491  
    5050        if (!initialised) { 
    5151                // <?xml version="1.0" encoding="UTF-8" standalone="no"?> 
    52                 xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*"); 
     52                xmlScan.addPattern(XmlDecl, "<\\?xml[^?]*\\?>[[:space:]]*"); 
    5353                xmlScan.addPattern(XmlCommentBegin, "<!--"); 
    5454                xmlScan.addPattern(XmlBegin, "<[a-zA-Z0-9_-]+"