Show
Ignore:
Timestamp:
06/28/07 07:07:14 (2 years ago)
Author:
athomas
Message:

Dev Todo:

  • A few bugfixes.
  • Added XML declaration parsing/saving. This is a stop-gap at best, but will
    hopefully be useful to some.
  • Removed reliance on builtin regex library. Hopefully the completely broken
    version of glibc that instigated the inclusion of it is now out of
    circulation.
  • Fixed a whole bunch of compiler warnings on more recent GCC versions.
Files:

Legend:

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

    r340 r443  
    3737        Lexer::iterator i = xmlScan.begin(str); 
    3838 
     39                if (i.type() == XmlDecl) { 
     40                        ++i; 
     41                } 
    3942                parseElement(i); 
    4043        } catch (Lexer::exception &e) { 
     
    4649        // Only initialise scanners once 
    4750        if (!initialised) { 
     51                // <?xml version="1.0" encoding="UTF-8" standalone="no"?> 
     52                xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*"); 
    4853                xmlScan.addPattern(XmlCommentBegin, "<!--"); 
    4954                xmlScan.addPattern(XmlBegin, "<[a-zA-Z0-9_-]+"