1. 19 Oct, 2003 1 commit
  2. 18 Oct, 2003 2 commits
    • William M. Brack's avatar
      Changed all (?) occurences where validation macros (IS_xxx) had · 76e95df0
      William M. Brack authored
      * include/libxml/parserInternals.h HTMLparser.c HTMLtree.c
        SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c
        testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c
        xpath.c: Changed all (?) occurences where validation macros
        (IS_xxx) had single-byte arguments to use IS_xxx_CH instead
        (e.g. IS_BLANK changed to IS_BLANK_CH).  This gets rid of
        many warning messages on certain platforms, and also high-
        lights places in the library which may need to be enhanced
        for proper UTF8 handling.
      76e95df0
    • William M. Brack's avatar
      enhanced macros to avoid breaking ABI from previous versions. modified to · 871611bb
      William M. Brack authored
      * genChRanges.py, chvalid.c, include/libxml/chvalid.h,
        include/libxml/parserInternals.h: enhanced macros to avoid
        breaking ABI from previous versions.
      * catalog.c, parser.c, tree.c: modified to use IS_* macros
        defined in parserInternals.h.  Makes maintenance much easier.
      * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid
        compilation warnings
      * configuration.in: fixed pushHTML test error; enhanced for
        better devel (me) testing
      871611bb
  3. 09 Oct, 2003 1 commit
  4. 08 Oct, 2003 1 commit
  5. 07 Oct, 2003 1 commit
  6. 29 Sep, 2003 2 commits
    • Daniel Veillard's avatar
      Adding a configure option to remove tree manipulation code which is not · 652327a7
      Daniel Veillard authored
      * configure.in entities.c tree.c valid.c xmllint.c
        include/libxml/tree.h include/libxml/xmlversion.h.in:
        Adding a configure option to remove tree manipulation
        code which is not strictly needed by the parser.
      Daniel
      652327a7
    • Daniel Veillard's avatar
      Okay this is scary but it is just adding a configure option to disable · a9cce9cd
      Daniel Veillard authored
      * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c
        encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c
        testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c
        testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c
        xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c
        example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h
        include/libxml/catalog.h include/libxml/debugXML.h
        include/libxml/entities.h include/libxml/nanohttp.h
        include/libxml/relaxng.h include/libxml/tree.h
        include/libxml/valid.h include/libxml/xmlIO.h
        include/libxml/xmlschemas.h include/libxml/xmlversion.h.in
        include/libxml/xpathInternals.h python/libxml.c:
        Okay this is scary but it is just adding a configure option
        to disable output, this touches most of the files.
      Daniel
      a9cce9cd
  7. 28 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      cleanup, creating a new legacy.c module, made sure make tests ran in · 4432df23
      Daniel Veillard authored
      * Makefile.am: cleanup, creating a new legacy.c module,
        made sure make tests ran in reduced conditions
      * SAX.c SAX2.c configure.in entities.c globals.c parser.c
        parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c
        xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in:
        increased the modularization, allow to configure out
        validation code and legacy code, added a configuration
        option --with-minimum compiling only the mandatory code
        which then shrink to 200KB.
      Daniel
      4432df23
  8. 26 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      added the same htmlRead APIs than their XML counterparts new parser · 9475a352
      Daniel Veillard authored
      * HTMLparser.c testHTML.c xmllint.c include/libxml/HTMLparser.h:
        added the same htmlRead APIs than their XML counterparts
      * include/libxml/parser.h: new parser options, not yet implemented,
        added an options field to the context.
      * tree.c: patch from Shaun McCance to fix bug #123238 when ]]>
        is found within a cdata section.
      * result/noent/cdata2 result/cdata2 result/cdata2.rdr
        result/cdata2.sax test/cdata2: add one more cdata test
      Daniel
      9475a352
  9. 24 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      adding repeated parsing and validating tests make the new DOM tree · e96a2a4b
      Daniel Veillard authored
      * Makefile.am: adding repeated parsing and validating tests
      * SAX2.c parser.c tree.c include/libxml/parser.h: make the new
        DOM tree building interfaces use the dictionary from the
        parsing context to build the element and attributes names
        as well as formatting spaces and short text nodes
      * include/libxml/dict.h dict.c: added some reference counting
        for xmlDictPtr because they can be shared by documents and
        a parser context.
      * xmlreader.c: a bit of cleanup, remove the specific tree freeing
        functions and use the standard ones now.
      * xmllint.c: add --nodict
      * python/libxml.c: fix a stupid bug so that ns() works on
        attribute nodes.
      Daniel
      e96a2a4b
  10. 23 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      adding a new set of API for parsing xmlReadDoc() xmlReadFile() ... · 16fa96c5
      Daniel Veillard authored
      * parser.c include/libxml/parser.h: adding a new set of
        API for parsing xmlReadDoc() xmlReadFile() ... xmlReadIO()
        and xmlCtxtReadDoc() ... xmlCtxtReadIO(). That with
        a clear define of xmlParserOption, xmlCtxtUseOptions()
        should simplify custom parsing without being tempted to
        use global variables, and xmlCtxtReset() should allow reuse
        of a context for multiple parsing.
      * xmllint.c: switched to use xmlReadXXX, allow options to
        be used simultaneously with less troubles.
      * tree.c: simple warning removal
      * doc/apibuild.py: small fix
      * doc/libxml2-api.xml win32/libxml2.def.src: updated
      Daniel
      16fa96c5
  11. 22 Sep, 2003 1 commit
  12. 19 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      preparing a 2.6.0-beta2 release avoid a warning avoid duplicate code in · e72c508c
      Daniel Veillard authored
      * configure.in: preparing a 2.6.0-beta2 release
      * xmlIO.c: avoid a warning
      * tree.c: avoid duplicate code in xmlReplaceNode as pointed out
        by Chris Ryland
      * include/libxml/dict.h: add a QName access lookup to the
        dictionary.
      * xmlreader.c include/libxml/xmlreader.h: adding const access
        based on the dictionary interface for string read from the
        reader, the node content access is still TODO, it's too different
      Daniel
      e72c508c
  13. 18 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      add streaming on memory regression tests, found bad bugs in the reader · 5335055e
      Daniel Veillard authored
      * Makefile.am: add streaming on memory regression tests, found
        bad bugs in the reader interface
      * xmlreader.c: fixing bugs w.r.t. very large names, and special
        condition in end of file.
      * xmlIO.c tree.c include/libxml/tree.h include/libxml/xmlIO.h:
        adding immutable buffers, and parser input based on those,
        but this should not be used (yet) for general parsing
      * parser.c: added a comment about using immutable buffers for
        general parsing.
      * result/bigname.xml.rdr result/bigname2.xml.rdr: fixing the
        output of the regression tests
      * xmllint.c: using the immutable buffers when streaming on
        mmaped file (--stream --memory)
      Daniel
      5335055e
  14. 14 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      factoring of more error handling code, serious size reduction and more · bdbe0d4e
      Daniel Veillard authored
      * parser.c include/libxml/xmlerror.h: factoring of more
        error handling code, serious size reduction and more lisibility
        of the resulting code.
      * parserInternals.c parser.c include/libxml/parserInternals.h
        include/libxml/parser.h: changing the way VC:Proper Group/PE Nesting
        checks are done, use a counter for entities. Entities where freed and
        reallocated at the same address failing the check.
      * tree.c: avoid a warning
      * result/valid/* result/VC/*: this slightly changes some validation
        error messages.
      Daniel
      bdbe0d4e
  15. 12 Sep, 2003 1 commit
  16. 11 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      adding namespace checkings while making sure they still parse as · 3b7840cd
      Daniel Veillard authored
      * parser.c parserInternals.c tree.c include/libxml/parser.h
        include/libxml/xmlerror.h: adding namespace checkings
        while making sure they still parse as wellformed documents.
        Add an nsWellFormed status report to the context, and
        provide new appropriate error codes.
      * Makefile.am result/namespaces/* test/namespaces/*: add
        specific regression testing for the new namespace support
      * test/att5 result/noent/att5 result/att5 result/att5.sax:
        add more coverage for the attribute parsing and normalization
        code.
      Daniel
      3b7840cd
  17. 10 Sep, 2003 1 commit
    • Daniel Veillard's avatar
      Time to commit 3 days of work rewriting the parser internal, · 07cb8226
      Daniel Veillard authored
      fixing bugs and migrating to SAX2 interface by default. There
      is some work letf TODO, like namespace validation and attributes
      normalization (this break C14N right now)
      * Makefile.am: fixed the test rules
      * include/libxml/SAX2.h include/libxml/parser.h
        include/libxml/parserInternals.h SAX2.c parser.c
        parserInternals.c: changing the parser, migrating to SAX2,
        adding new interface to switch back to SAX1 or initialize a
        SAX block for v1 or v2. Most of the namespace work is done
        below SAX, as well as attribute defaulting
      * globals.c: changed initialization of the default SAX handlers
      * hash.c tree.c include/libxml/hash.h: added QName specific handling
      * xmlIO.c: small fix
      * xmllint.c testSAX.c: provide a --sax1 switch to test the old
        version code path
      * result/p3p result/p3p.sax result/noent/p3p test/p3p: the new code
        pointed out a typo in a very old test namespace
      Daniel
      07cb8226
  18. 19 Aug, 2003 2 commits
  19. 08 Aug, 2003 1 commit
    • Daniel Veillard's avatar
      hum try to avoid some troubles when the library is not initialized and one · 70bcb0ea
      Daniel Veillard authored
      * HTMLtree.c tree.c threads.c: hum try to avoid some troubles
        when the library is not initialized and one try to save, the
        locks in threaded env might not been initialized, playing safe
      * xmlschemastypes.c: apply patch for hexBinary from Charles Bozeman
      * test/schemas/hexbinary_* result/schemas/hexbinary_*: also added
        his tests to the regression suite.
      Daniel
      70bcb0ea
  20. 04 Aug, 2003 3 commits
  21. 29 Jul, 2003 1 commit
  22. 07 Jul, 2003 1 commit
  23. 05 Jun, 2003 1 commit
  24. 12 May, 2003 1 commit
  25. 01 May, 2003 1 commit
  26. 24 Apr, 2003 1 commit
    • Daniel Veillard's avatar
      integrated the Out Of Memory test from Havoc Pennington #109368 a lot of · a76fe5ca
      Daniel Veillard authored
      * Makefile.am testOOM.c testOOMlib.[ch] : integrated the Out Of
        Memory test from Havoc Pennington #109368
      * SAX.c parser.c parserInternals.c tree.c uri.c valid.c
        xmlmemory.c xmlreader.c xmlregexp.c include/libxml/tree.h
        include/libxml/parser.h: a lot of memory allocation cleanups
        based on the results of the OOM testing
      * check-relaxng-test-suite2.py: seems I forgot to commit the
        script.
      Daniel
      a76fe5ca
  27. 21 Apr, 2003 1 commit
    • Daniel Veillard's avatar
      a lot of performance work especially the speed of streaming through the · a880b124
      Daniel Veillard authored
      * globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c
        xmlreader.c include/libxml/parser.h: a lot of performance work
        especially the speed of streaming through the reader and push
        interface. Some thread related optimizations. Nearly doubled the
        speed of parsing through the reader.
      Daniel
      a880b124
  28. 19 Apr, 2003 1 commit
    • Daniel Veillard's avatar
      added xmlMallocAtomic() to be used when allocating blocks which do not · 3c908dca
      Daniel Veillard authored
      * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c
        nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c
        xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c
        include/libxml/globals.h include/libxml/xmlmemory.h: added
        xmlMallocAtomic() to be used when allocating blocks which
        do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet()
        to allow registering the full set of functions needed by
        a garbage collecting allocator like libgc, ref #109944
      Daniel
      3c908dca
  29. 07 Apr, 2003 1 commit
  30. 27 Mar, 2003 1 commit
  31. 24 Mar, 2003 1 commit
  32. 18 Mar, 2003 1 commit
    • Daniel Veillard's avatar
      removed a warning more cleanup, added ENTITY and ENTITIES support · a1a9d041
      Daniel Veillard authored
      * tree.c: removed a warning
      * xmlschemastypes.c: more cleanup, added ENTITY and ENTITIES
        support
      * check-relaxng-test-suite.py check-xsddata-test-suite.py:
        cleanup/improvements of the regression tests batch
      * test/relaxng/testsuite.xml: augmented libxml2 own testsuite
      Daniel
      a1a9d041
  33. 27 Feb, 2003 1 commit
  34. 24 Feb, 2003 2 commits
    • Daniel Veillard's avatar
      fixed xmlSetProp and al. when the node passed is not an element. fixed · 3ebc7d43
      Daniel Veillard authored
      * tree.c: fixed xmlSetProp and al. when the node passed is not an
        element.
      * relaxng.c: fixed bugs 7.3 (though not complete) and memory leaks
        found 373 test schemas: 369 success 4 failures
        found 529 test instances: 525 success 4 failures
      * check-relaxng-test-suite.py: added memory debug reporting
      Daniel
      3ebc7d43
    • Daniel Veillard's avatar
      some warning removal on Igor's patch seems I messed up with #106788 fix · c64b8e98
      Daniel Veillard authored
      * uri.c parser.c: some warning removal on Igor's patch
      * tree.c: seems I messed up with #106788 fix
      * python/libxml.c: fixed some base problems when Python provides
        the resolver.
      * relaxng.c: fixed the interleave algorithm
        found 373 test schemas: 364 success 9 failures
        found 529 test instances: 525 success 4 failures
        the resulting failures are bug in the algorithm from 7.3 and
        lack of support for params
      Daniel
      c64b8e98