Changeset 491

Show
Ignore:
Timestamp:
27/12/07 15:39:19 (2 years ago)
Author:
athomas
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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_-]+"