1. 11 Sep, 2012 1 commit
  2. 27 Aug, 2012 1 commit
    • Pietro Cerutti's avatar
      Fix problem with specific and generic error handlers · 890faa54
      Pietro Cerutti authored
      It seems that setting up both xmlTextReaderSetStructuredErrorHandler and
      xmlSetStructuredErrorFunc confuses the code around error.c:592 and following
      This patch works with any combinations of using xmlSetStructuredErrorFunc,
      xmlTextReaderSetStructuredErrorHandler, both, or none.
      890faa54
  3. 14 Aug, 2012 1 commit
    • Daniel Veillard's avatar
      Fix file and line report for XSD SAX and reader streaming validation · 97fa5b3c
      Daniel Veillard authored
      Things now work correctly at the xmllint level:
      thinkpad:~/XML -> xmllint --sax --noout --schema test_schema.xsd
      test_xml.xml
      test_xml.xml:72721: Schemas validity error : Element 'level1': Missing
      child element(s). Expected is ( level2 ).
      test_xml.xml fails to validate
      thinkpad:~/XML -> xmllint --stream --schema test_schema.xsd test_xml.xml
      test_xml.xml:72721: Schemas validity error : Element 'level1': Missing
      child element(s). Expected is ( level2 ).
      test_xml.xml fails to validate
      thinkpad:~/XML ->
      
      * error.c: fix a corner case of not reporting lines when we should
      * include/libxml/xmlschemas.h doc/symbols.xml: had to add new entry
        points to set the filename on a validation context and a locator
        callback used to fetch the line and file from the context
      * xmlschemas.c: add the new entry points xmlSchemaValidateSetFilename()
        and xmlSchemaValidateSetLocator(), plus make sure the error reporting
        routine gets the information if available. Add a locator for SAX.
      * xmlreader.c: add and plug a locator for readers.
      97fa5b3c
  4. 13 Aug, 2012 1 commit
    • Daniel Veillard's avatar
      Add support for big line numbers in error reporting · 968a03a2
      Daniel Veillard authored
      Fix the lack of line number as reported by Johan Corveleyn <jcorvel@gmail.com>
      
      * parser.c include/libxml/parser.h: add an XML_PARSE_BIG_LINES parser
        option not switch on by default, it's an opt-in
      * SAX2.c: if XML_PARSE_BIG_LINES is set store the long line numbers
        in the psvi field of text nodes
      * tree.c: expand xmlGetLineNo to extract those informations, also
        make sure we can't fail on recursive behaviour
      * error.c: in __xmlRaiseError, if a node is provided, call
        xmlGetLineNo() if we can't get a valid line number.
      * xmllint.c: switch on XML_PARSE_BIG_LINES in xmllint
      968a03a2
  5. 24 Jul, 2012 1 commit
    • Daniel Veillard's avatar
      Cleanup URI module memory allocation code · 57560386
      Daniel Veillard authored
      * uri.c: cleanup the code doing the allocations, set up a structured
        error handler to report memory errors, and set up an abitrary
        limit on URI saving size
      * error.c include/libxml/xmlerror.h: add a new FROM_URI indication
        for structured error reporting, also adding strings for schematron
        and buffer which were missing
      57560386
  6. 23 Feb, 2011 4 commits
  7. 15 Mar, 2010 1 commit
  8. 07 Sep, 2009 1 commit
    • Daniel Veillard's avatar
      Chasing dead assignments reported by clang-scan · 594e5dfb
      Daniel Veillard authored
      * SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c
        relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c
        xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations,
        but this led to a few real bugs and some part not yet understood
        (relaxng/interleave)
      594e5dfb
  9. 24 Aug, 2009 1 commit
    • Wang Lam's avatar
      Fix SetGenericErrorFunc and SetStructured clash · 1de382eb
      Wang Lam authored
      * include/libxml/globals.h globals.c global.data: define a new global
        variable (per thread) for structured error reporting, to not conflict
        with generic one
      * error.c: when defined use the structured error report over any generic
        one
      1de382eb
  10. 02 Apr, 2009 1 commit
  11. 03 Apr, 2008 1 commit
  12. 28 Oct, 2005 1 commit
  13. 27 Sep, 2005 1 commit
  14. 25 Aug, 2005 1 commit
  15. 24 Aug, 2005 1 commit
  16. 21 Jul, 2005 1 commit
    • Daniel Veillard's avatar
      applied a patch from Marcus Boerger to fix problems with calling · ffa3c749
      Daniel Veillard authored
      * error.c globals.c parser.c runtest.c testHTML.c testSAX.c
        threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c
        xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h
        include/libxml/valid.h include/libxml/xmlIO.h
        include/libxml/xmlerror.h include/libxml/xmlexports.h
        include/libxml/xmlschemas.h: applied a patch from Marcus Boerger
        to fix problems with calling conventions on Windows this should
        fix #309757
      Daniel
      ffa3c749
  17. 13 Jul, 2005 1 commit
    • Daniel Veillard's avatar
      applied patch from Marcus Boerger to route relaxng and schemas error · da0aa4cf
      Daniel Veillard authored
      * error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h
        include/libxml/xmlschemas.h: applied patch from Marcus Boerger
        to route relaxng and schemas error messages when using the reader
        through the structured interface if activated.
      * elfgcchack.h doc/* testapi.c: rebuilt since this add  new APIs
        to test.
      Daniel
      da0aa4cf
  18. 03 Jul, 2005 1 commit
    • Daniel Veillard's avatar
      fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing · 39e5c890
      Daniel Veillard authored
      * testapi.c tree.c: fixing a leak detected by testapi in
        xmlDOMWrapAdoptNode, and fixing another side effect in testapi
        seems to pass tests fine now.
      * include/libxml/parser.h parser.c: xmlStopParser() is no more limited
        to push mode
      * error.c: remove a warning
      * runtest.c xmllint.c: avoid compilation errors if only some parts
        of the library are compiled in.
      Daniel
      39e5c890
  19. 27 Jun, 2005 1 commit
  20. 01 Apr, 2005 1 commit
    • Daniel Veillard's avatar
      revamped the elfgcchack.h format to cope with gcc4 change of aliasing · 5d4644ef
      Daniel Veillard authored
      * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h
        format to cope with gcc4 change of aliasing allowed scopes, had
        to add extra informations to doc/libxml2-api.xml to separate
        the header from the c module source.
      * *.c: updated all c library files to add a #define bottom_xxx
        and reimport elfgcchack.h thereafter, and a bit of cleanups.
      * doc//* testapi.c: regenerated when rebuilding the API
      Daniel
      5d4644ef
  21. 05 Jan, 2005 1 commit
  22. 04 Jan, 2005 1 commit
    • Daniel Veillard's avatar
      applied DSO support patch 2 from Joel Reed Daniel · ce1648b1
      Daniel Veillard authored
      * Makefile.am config.h.in configure.in error.c libxml-2.0.pc.in
        testModule.c testdso.c xml2-config.in xmllint.c xmlmodule.c
        include/libxml/Makefile.am include/libxml/xmlerror.h
        include/libxml/xmlmodule.h include/libxml/xmlversion.h.in
        include/libxml/xmlwin32version.h.in: applied DSO support
        patch 2 from Joel Reed
      Daniel
      ce1648b1
  23. 25 Oct, 2004 1 commit
  24. 02 Oct, 2004 1 commit
  25. 14 Aug, 2004 1 commit
    • Daniel Veillard's avatar
      added a dumb rule to able to compile tst.c when people submit a sample · da3b29a5
      Daniel Veillard authored
      * Makefile.am: added a dumb rule to able to compile tst.c
        when people submit a sample test program
      * xmlschemas.c: applied small patch from Eric Haszlakiewicz
        to document xmlSchemasSetValidErrors() limitations, #141827
      * error.c: Add information in generic and structured error
        setter functions that this need to be done per thread #144308
      * xmlsave.c: fixed bug whith missing NOTATION(s) serialization
        bug #144162
      * doc/xmllint.xml: typo fix #144840
      Daniel
      da3b29a5
  26. 31 Jul, 2004 1 commit
    • William M. Brack's avatar
      many further little changes for OOM problems. Now seems to be getting · a3215c7a
      William M. Brack authored
      * SAX2.c, encoding.c, error.c, parser.c, tree.c, uri.c, xmlIO.c,
        xmlreader.c, include/libxml/tree.h: many further little changes
        for OOM problems.  Now seems to be getting closer to "ok".
      * testOOM.c: added code to intercept more errors, found more
        problems with library. Changed method of flagging / counting
        errors intercepted.
      a3215c7a
  27. 28 Jul, 2004 1 commit
  28. 25 Jul, 2004 1 commit
  29. 16 May, 2004 1 commit
  30. 20 Apr, 2004 1 commit
    • Daniel Veillard's avatar
      Johnson Cameron pointed out that initGenericErrorDefaultFunc() was really · da0ff5da
      Daniel Veillard authored
      * error.c: Johnson Cameron pointed out that
        initGenericErrorDefaultFunc() was really wrong.
      * xmlreader.c include/libxml/xmlreader.h: xmlTextReaderMode enum
        must be made public, added some missing comments on the XMLReader
        header.
      * c14n.c: Alexsey fixed C14N bug with processing namespaces
        from attributes
      Daniel
      da0ff5da
  31. 02 Jan, 2004 1 commit
  32. 08 Dec, 2003 2 commits
  33. 07 Dec, 2003 1 commit
  34. 28 Oct, 2003 1 commit
  35. 21 Oct, 2003 1 commit
  36. 10 Oct, 2003 1 commit
    • Daniel Veillard's avatar
      Setting up the framework for structured error reporting, touches a lot of · 659e71ec
      Daniel Veillard authored
      * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c
        parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c
        xmlschemas.c xpath.c xpointer.c include/libxml/globals.h
        include/libxml/parser.h include/libxml/valid.h
        include/libxml/xmlerror.h: Setting up the framework for structured
        error reporting, touches a lot of modules, but little code now
        the error handling trail has been cleaned up.
      Daniel
      659e71ec