summaryrefslogtreecommitdiff
path: root/SAX.c
Commit message (Collapse)AuthorAgeFilesLines
* Big space and tab cleanupDaniel Veillard2012-09-111-1/+1
| | | | Remove all space before tabs and space and tabs at end of lines.
* revamped the elfgcchack.h format to cope with gcc4 change of aliasingDaniel Veillard2005-04-011-0/+2
| | | | | | | | | | | * 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
* fixed #172260 redundant assignment. fixed xmlSAXParseDoc() andDaniel Veillard2005-03-311-1/+0
| | | | | | | * SAX.c: fixed #172260 redundant assignment. * parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and xmlParseDoc() signatures #172257. Daniel
* Re-examined the problems of configuring a "minimal" library.William M. Brack2005-01-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Synchronized the header files with the library code in order to assure that all the various conditionals (LIBXML_xxxx_ENABLED) were the same in both. Modified the API database content to more accurately reflect the conditionals. Enhanced the generation of that database. Although there was no substantial change to any of the library code's logic, a large number of files were modified to achieve the above, and the configuration script was enhanced to do some automatic enabling of features (e.g. --with-xinclude forces --with-xpath). Additionally, all the format errors discovered by apibuild.py were corrected. * configure.in: enhanced cross-checking of options * doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml, doc/libxml2-api.xml, gentest.py: changed the usage of the <cond> element in module descriptions * elfgcchack.h, testapi.c: regenerated with proper conditionals * HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c, testSAX.c: cleaned up conditionals * include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h, hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h, valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]: synchronized the conditionals with the corresponding module code * doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c: added additional conditions required for compilation * doc/*.html, doc/html/*.html: rebuilt the docs
* added support for HTML PIs #156087 added specific tests DanielDaniel Veillard2004-10-221-0/+1
| | | | | | * HTMLparser.c: added support for HTML PIs #156087 * test/HTML/python.html result/HTML/python.html*: added specific tests Daniel
* added 2 new configure option: --with-reader --with-sax1 to allow removingDaniel Veillard2003-09-301-0/+2
| | | | | | | | | * Makefile.am SAX.c SAX2.c configure.in globals.c parser.c parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: added 2 new configure option: --with-reader --with-sax1 to allow removing the reader or non-xmlReadxxx() interfaces. Daniel
* cleanup, creating a new legacy.c module, made sure make tests ran inDaniel Veillard2003-09-281-583/+0
| | | | | | | | | | | | | * 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
* preparing a beta3 solving the ABI problems make sure the global variablesDaniel Veillard2003-09-251-3/+3
| | | | | | | | | | | * configure.in: preparing a beta3 solving the ABI problems * globals.c parser.c parserInternals.c testHTML.c HTMLparser.c SAX.c include/libxml/globals.h include/libxml/SAX.h: make sure the global variables for the default SAX handler are V1 ones to avoid ABI compat problems. * xmlreader.c: cleanup of uneeded code * hash.c: fix a comment Daniel
* make the deprecated interfaces log an error message to be sure it won'tDaniel Veillard2003-08-211-0/+42
| | | | | | * SAX.c: make the deprecated interfaces log an error message to be sure it won't get used. Daniel
* Adding new version of the SAX interface, it's not there yet, currentlyDaniel Veillard2003-08-201-1600/+128
| | | | | | | | | | | | * Makefile.am SAX2.c include/libxml/Makefile.am include/libxml/SAX2.h: Adding new version of the SAX interface, it's not there yet, currently just preparing the work * globals.c parser.c SAX.c include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h: doing some refactoring of the SAXv1 interfaces, obsoleting a bunch of them while keeping functionalities, preparing SAX2 integration. * dict.c: small cleanup. Daniel
* fixing a bug about a special case of namespace handling, this closes bugDaniel Veillard2003-07-241-0/+16
| | | | | | * SAX.c parser.c: fixing a bug about a special case of namespace handling, this closes bug #116841 Daniel
* integrated the Out Of Memory test from Havoc Pennington #109368 a lot ofDaniel Veillard2003-04-241-14/+92
| | | | | | | | | | | | * 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
* try to find more places where xmlCanonicPath() must be used to convertDaniel Veillard2003-04-231-1/+1
| | | | | | | * DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find more places where xmlCanonicPath() must be used to convert filenames to URLs, trying to fix #111088 Daniel
* applied the patch provided by Brent Hendricks fixing #105992 andDaniel Veillard2003-04-221-2/+3
| | | | | | | * SAX.c test/valid/ns* test/result/ns*: applied the patch provided by Brent Hendricks fixing #105992 and integrated the examples in the testsuite. Daniel
* fixed an uninitialized memory access pointed by valgrind on C14NtestsDaniel Veillard2003-04-011-2/+4
| | | | | | * SAX.c: fixed an uninitialized memory access pointed by valgrind on C14Ntests Daniel
* more work on XML Schemas datatypes and facets support. Currently onlyDaniel Veillard2003-03-301-12/+0
| | | | | | | | | | | | | * relaxng.c xmlschemastypes.c: more work on XML Schemas datatypes and facets support. Currently only schemas with binHex or base64 don't compile. A few error left in the test suite: found 1035 test instances: 919 success 23 failures most are gdate or gdateyear failing check, and a few cases where James clark tests results are strange. * valid.c: allow to reuse the Notation checking routine without having a validation context. * SAX.c: removed a #if 0 Daniel
* fixing bug #108976 get the ID/REFs to reference the ID in the documentDaniel Veillard2003-03-231-5/+5
| | | | | | | | | | | | | | | * parser.c: fixing bug #108976 get the ID/REFs to reference the ID in the document content and not in the entity copy * SAX.c include/libxml/parser.h: more checking of the ID/REF stuff, better solution for #107208 * xmlregexp.c: removed a direct printf, dohhh * xmlreader.c: fixed a bug on streaming validation of empty elements in entities * result/VC/ElementValid8 test/VCM/v20.xml result/valid/xhtml1.xhtml: cleanup of the validation tests * test/valid/id* test/valid/dtds/destfoo.ent result/valid/id*: added more ID/IDREF tests to the suite Daniel
* fix bug #107208 avoid false duplicates when ID/REFs are defined inDaniel Veillard2003-03-221-2/+3
| | | | | | * SAX.c: fix bug #107208 avoid false duplicates when ID/REFs are defined in entities content Daniel
* Fixed validation bug #108858 on namespace names using entities andDaniel Veillard2003-03-221-10/+34
| | | | | | | | * SAX.c: Fixed validation bug #108858 on namespace names using entities and reported by Brent Hendricks * xmllint.c: report xmlTextReaderHasValue() result in --stream --debug output. Daniel
* fix some recursion problems introduced in the last release. more debuggingDaniel Veillard2003-03-111-2/+14
| | | | | | | | * SAX.c parser.c: fix some recursion problems introduced in the last release. * relaxng.c: more debugging of the RNG validation engine, still problems though. Daniel
* fixed bug #105992 DanielDaniel Veillard2003-02-241-1/+1
| | | | | * SAX.c: fixed bug #105992 Daniel
* ensured xmlDoc.URL is always canonicIgor Zlatkovic2003-02-191-1/+3
|
* added the redefinition of namespaced attribute check that was missing asDaniel Veillard2003-02-051-2/+23
| | | | | | * SAX.c: added the redefinition of namespaced attribute check that was missing as Fabrice Desré pointed out. Daniel
* preparing 2.5.1 release fixing XmlTextReader bug DanielLIBXML_2_5_1Daniel Veillard2003-01-081-1/+3
| | | | | | * configure.in doc/* NEWS: preparing 2.5.1 release * SAX.c parser.c: fixing XmlTextReader bug Daniel
* fuck, I introduced a memory leak on external parsed entities in 2.5.0 :-(Daniel Veillard2003-01-071-0/+1
| | | | | | * SAX.c: fuck, I introduced a memory leak on external parsed entities in 2.5.0 :-( Daniel
* preparing 2.5.0 release only warn in pedantic mode about namespace nameLIBXML2_2_5_0Daniel Veillard2003-01-061-1/+1
| | | | | | | | | | | | * configure.in NEWS: preparing 2.5.0 release * SAX.c: only warn in pedantic mode about namespace name brokeness * globals.c: fix a doc generation problem * uri.c: fix #101520 * doc/*: updated and rebuilt the doc for the release, includuding stylesheet update * python/Makefile.am: fix a filename bug Daniel
* warn on xmlns:prefix="foo" fixed a couple of problem for namespaceDaniel Veillard2002-12-301-1/+19
| | | | | | | * SAX.c: warn on xmlns:prefix="foo" * xmlreader.c python/tests/reader.py: fixed a couple of problem for namespace attributes handling. Daniel
* fixing bug #95296, when the predefined entities are redefined in the DTDDaniel Veillard2002-12-271-1/+6
| | | | | | | * SAX.c: fixing bug #95296, when the predefined entities are redefined in the DTD the default one must be used instead anyway. Daniel
* new API building Python script, does the C parsing directly, generates aDaniel Veillard2002-12-111-4/+4
| | | | | | | | | | | | | | | * doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API building Python script, does the C parsing directly, generates a better API description including structure fieds defs and enums. Still a couple of bugs, but good enough for the python wrappers now. * DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c include/libxml/schemasInternals.h include/libxml/tree.h: more cleanup based on the python analysis script reports. * libxml.spec.in: make sure the API XML description is part of the devel package. Daniel
* fixed bug #92518 validation error were not covering namespaceDaniel Veillard2002-09-261-15/+46
| | | | | | | | | * SAX.c valid.c include/libxml/valid.h: fixed bug #92518 validation error were not covering namespace declarations. * result/valid/dia.xml test/valid/dia.xml: the test wasn't valid, it was missing the attribute declaration for the namespace * result/VC/NS3: the fix now report breakages in that test Daniel
* performance patch from Peter Jacobi DanielDaniel Veillard2002-05-291-6/+2
| | | | | | * SAX.c parser.c tree.c include/libxml/tree.h: performance patch from Peter Jacobi Daniel
* Never commit without running "make tests" :-( fix a couple of stupiditiesDaniel Veillard2002-03-251-1/+2
| | | | | | | | * valid.c SAX.c: Never commit without running "make tests" :-( fix a couple of stupidities in the previous commit * result/*: a few changes in some attribute order result of previous commit. Daniel
* fixed bug #76168, attribute redeclared in the internal subset should notDaniel Veillard2002-03-251-4/+5
| | | | | | | | * valid.c SAX.c: fixed bug #76168, attribute redeclared in the internal subset should not raise duplicate ID errors, also there was a small bug in conjunction to namespace declarations defaulted and xml:xxx attributes DTD definitions. Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newLIBXML_2_4_18Daniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* Fixing #74186, made sure all boolean expressions get fully parenthesized,Daniel Veillard2002-03-111-8/+0
| | | | | | | | | | * c14n.c: Fixing #74186, made sure all boolean expressions get fully parenthesized, ran indent on the output * configure.in HTMLtree.c SAX.c c14n.c debugXML.c tree.c xpointer.c include/libxml/tree.h: also #74186 related, removed the --with-buffers option, and all the preprocessor conditional sections that were resulting from it. Daniel
* Fixed #72346, about handling of xmlns:foo="", this could actually changeDaniel Veillard2002-03-011-1/+7
| | | | | | * SAX.c: Fixed #72346, about handling of xmlns:foo="", this could actually change in a future XML Namespace revision. Daniel
* oops broke automatic defaulting of namespaces attributes. DanielDaniel Veillard2002-02-191-32/+35
| | | | | * SAX.c: oops broke automatic defaulting of namespaces attributes. Daniel
* had to change 2 internal parsing API when processing document content toDaniel Veillard2002-02-191-17/+41
| | | | | | | | | | | | | | | | | * include/libxml/parserInternals.h parser.c: had to change 2 internal parsing API when processing document content to check the start and end of element content are defined in the same entity * valid.c include/libxml/valid.h: attribute normalization can generate a validity error added xmlValidCtxtNormalizeAttributeValue() with the context to report it. * SAX.c: fixed the last known bugs, crazy validation constraints when a document is standalone seems correctly handled. There is a couple of open issues left which need consideration especially PE93 on external unparsed entities and standalone status. Ran 1819 tests: 1817 suceeded, 2 failed and 0 generated an error in 8.26 s. The 2 tests left failing are actually in error. Cleanup done. Daniel
* more validation test fixups added duration info for the tests DanielDaniel Veillard2002-02-191-65/+127
| | | | | | * SAX.c parser.c valid.c: more validation test fixups * check-xml-test-suite.py: added duration info for the tests Daniel
* more work on the conformance suite. Took the step to finally blockDaniel Veillard2002-02-181-1/+10
| | | | | | | | * SAX.c parserInternals.c valid.c: more work on the conformance suite. Took the step to finally block documents with encoding errors. It's a fatal error per the spec, people should have fixed their documents by now. Daniel
* fixed a couple of conformances issues deep into the validation codeDaniel Veillard2002-02-181-4/+32
| | | | | | * SAX.c entities.c: fixed a couple of conformances issues deep into the validation code (standalone and undeclared Notations) Daniel
* fixed #71740 NotationDecl with a required field missing DanielDaniel Veillard2002-02-171-1/+8
| | | | | | * valid.c SAX.c: fixed #71740 NotationDecl with a required field missing Daniel
* improved the behaviour a bit as well as the logs fixed a few more bugsDaniel Veillard2002-02-171-1/+18
| | | | | | | | * check-xml-test-suite.py: improved the behaviour a bit as well as the logs * parser.c valid.c SAX.c: fixed a few more bugs "Ran 1819 tests: 1778 suceeded, 41 failed, and 0 generated an error" Daniel
* python script to run regression tests against the XML Test suite ofDaniel Veillard2002-02-171-1/+1
| | | | | | | | | | * check-xml-test-suite.py: python script to run regression tests against the XML Test suite of W3C/OASis * SAX.c: fixed a validation bug * parser.c: fixed 3 errors pointed by the test suite * doc/buildDocBookCatalog: fixed a typo pointed by drake * python/Makefile.am: fixed a dependendy Daniel
* Build a new version hopefully near complete and fully documented of theDaniel Veillard2002-01-221-5/+3
| | | | | | | | | | | | | | | * doc/libxml2-api.xml doc/parsedecl.py: Build a new version hopefully near complete and fully documented of the API in XML * HTMLtree.c SAX.c debugXML.c error.c globals.c parser.c tree.c xmlIO.c xmlmemory.c include/libxml/catalog.h include/libxml/hash.h include/libxml/list.h include/libxml/parser.h include/libxml/tree.h include/libxml/parserInternals.h include/libxml/valid.hi include/libxml/xmlIO.h include/libxml/xmlerror.hi include/libxml/xmlmemory.h include/libxml/xmlversion.h.ini include/libxml/xpath.h include/libxml/xpathInternals.h: Cleaned up the doc comments a lot in the process, the interface coverage is now 100% Daniel
* cleanup patch from Anthony Jones fix the headers to avoid in make scanDaniel Veillard2002-01-201-6/+7
| | | | | | | | | | | * SAX.c: cleanup patch from Anthony Jones * doc/Makefile.am: fix the headers to avoid in make scan * parserInternals.c xpath.c include/libxml/*.h: cleanup of the includes, * vs Ptr and general cleanup * parsedecl.py: first version of a script to extract the module interfaces, the goal will be to provide .decl or XML specification of the interfaces to build wrappers. Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-5/+16
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-2/+3
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* Applied the last patches from Gary, cleanup, activated threading all userDaniel Veillard2001-10-131-203/+125
| | | | | | | | | | | | | | | * include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c: Applied the last patches from Gary, cleanup, activated threading all user accessible global variables are now handled in globals.[ch] Still a bit rought but make tests passes with either --with-threads defined at configure time or not. * Makefile.am example/Makefile.am: added globals.[ch] and threads linking options Daniel
* preparing 2.4.6 release updated and rebuilt the docs fixed a number ofLIBXML_2_4_6Daniel Veillard2001-10-101-2/+2
| | | | | | | * configure.in: preparing 2.4.6 release * doc/xml.html doc/html/*: updated and rebuilt the docs * include/libxml/*.h *.c: fixed a number of teh/the widht/width typos Daniel