tree.c


Log

Author Commit Date CI Message
Daniel Veillard 8874b94c 2005-08-25T13:19:21 added a parser XML_PARSE_COMPACT option to allocate small text nodes (less * HTMLparser.c parser.c SAX2.c debugXML.c tree.c valid.c xmlreader.c xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h: added a parser XML_PARSE_COMPACT option to allocate small text nodes (less than 8 bytes on 32bits, less than 16bytes on 64bits) directly within the node, various changes to cope with this. * result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: this slightly change the output Daniel
Daniel Veillard 73da77e0 2005-08-24T14:05:37 line numbers are now carried by most nodes, fixing xmlGetLineNo() c.f. bug * SAX2.c tree.c: line numbers are now carried by most nodes, fixing xmlGetLineNo() c.f. bug #309205 Daniel
Daniel Veillard bca3ad25 2005-08-23T22:14:02 fixed compilation when configured --without-sax1 and other cleanups fixes * SAX2.c globals.c runtest.c testC14N.c testapi.c tree.c include/libxml/SAX2.h include/libxml/xmlregexp.h: fixed compilation when configured --without-sax1 and other cleanups fixes bug #172683 * doc/* elfgcchack.h: regenerated Daniel
Daniel Veillard 365c806e 2005-07-19T11:31:55 applied patch from Alexander Pohoyda fixing xmlGetNodePath on namespaced * tree.c: applied patch from Alexander Pohoyda fixing xmlGetNodePath on namespaced attributes #310417. Daniel
Daniel Veillard 39e5c890 2005-07-03T22:48:50 fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing * 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
Daniel Veillard 7e21fd10 2005-07-03T21:44:07 fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing * 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. Daniel
Daniel Veillard 6b6d6809 2005-07-03T21:00:34 fixing compilations when disabling parts of the library at configure time. * runsuite.c runtest.c tree.c: fixing compilations when disabling parts of the library at configure time. Daniel
Daniel Veillard 304e78c6 2005-07-03T16:19:41 fix bug raised by zamez on IRC regenerated, seems to pop-up leaks in new * parserInternals.c: fix bug raised by zamez on IRC * testapi.c: regenerated, seems to pop-up leaks in new tree functions * tree.c: added comments missing. * doc/*: regenerated Daniel
Kasimier T. Buchcik 4d9c948f 2005-06-27T15:04:46 Added allocation/deallocation functions for the DOM-wrapper context. * tree.c include/libxml/tree.h: Added allocation/deallocation functions for the DOM-wrapper context.
Kasimier T. Buchcik 017264fe 2005-06-27T13:45:24 Commented the new functions to be experimental. * tree.c: Commented the new functions to be experimental.
Kasimier T. Buchcik bc0e3c6b 2005-06-27T10:28:23 Added xmlDOMWrapReconcileNamespaces(), xmlDOMWrapAdoptNode() and * tree.c include/libxml/tree.h: Added xmlDOMWrapReconcileNamespaces(), xmlDOMWrapAdoptNode() and xmlDOMWrapRemoveNode() to the API. These are functions intended to be used with DOM-wrappers.
Daniel Veillard da6f4af3 2005-06-20T17:17:54 applied patch from Rob Richards for removal of ID (and xml:id) applied * tree.c valid.c: applied patch from Rob Richards for removal of ID (and xml:id) * xmlreader.c: applied patch from James Wert implementing xmlTextReaderReadInnerXml and xmlTextReaderReadOuterXml Daniel
Daniel Veillard 64d7d123 2005-05-11T18:03:42 applied patch for replaceNode from Brent Hendricks Daniel * tree.c: applied patch for replaceNode from Brent Hendricks Daniel
Daniel Veillard c587bce5 2005-05-10T15:28:08 fixed bug #303682 of a leak reported by Malcolm Rowe Daniel * tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe Daniel
Daniel Veillard 5d4644ef 2005-04-01T13:11:58 revamped the elfgcchack.h format to cope with gcc4 change of aliasing * 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
Daniel Veillard 5cd3e8c4 2005-03-27T11:25:28 cleanup of the Prop related functions and xmlNewNodeEatName by Rob * tree.c: cleanup of the Prop related functions and xmlNewNodeEatName by Rob Richards Daniel
Kasimier T. Buchcik ba70cc0d 2005-02-28T10:28:21 Changed xmlSearchNsByHref to call xmlNsInScope with the prefix instead of * tree.c: Changed xmlSearchNsByHref to call xmlNsInScope with the prefix instead of the namespace name. * test/schemas/annot-err_0.xsd test/schemas/element-err_0.xsd: Adapted invalid values of the "id" attribute, since they are validated now.
Daniel Veillard b6b36d37 2005-02-09T16:48:53 applied patch to xmlSetNsProp from Mike Hommey Daniel * tree.c: applied patch to xmlSetNsProp from Mike Hommey Daniel
Daniel Veillard 0996a162 2005-02-05T14:00:10 fixed the namespaces support fixed xmlGetNodePath when namespaces are used * pattern.c: fixed the namespaces support * tree.c: fixed xmlGetNodePath when namespaces are used * result/pattern/multiple result/pattern/namespaces test/pattern/multiple.* test/pattern/namespaces.*: added more regression tests Daniel
Daniel Veillard f59507d4 2005-01-27T17:26:49 fixed xmlCopyDoc to also copy the doc->URL as pointed by Martijn Faassen * tree.c: fixed xmlCopyDoc to also copy the doc->URL as pointed by Martijn Faassen Daniel
William M. Brack 21e4ef20 2005-01-02T09:53:13 Re-examined the problems of configuring a "minimal" library. 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
William M. Brack 1d8c9b29 2004-12-25T10:14:57 fixed to skip (if necessary) the BOM for encoding 'utf-16'. Completes the * parserInternals.c: fixed to skip (if necessary) the BOM for encoding 'utf-16'. Completes the fix for bug #152286. * tree.c, parser.c: minor warning cleanup, no change to logic
Daniel Veillard d5cc0f7f 2004-11-06T19:24:28 augmented types supported a number of new bug fixes and documentation * gentest.py testapi.c: augmented types supported * HTMLtree.c tree.c xmlreader.c xmlwriter.c: a number of new bug fixes and documentation updates. Daniel
Daniel Veillard 27f20100 2004-11-05T11:50:11 more coverage more fixes Daniel * gentest.py testapi.c: more coverage * nanoftp.c tree.c: more fixes Daniel
Daniel Veillard ce244ad5 2004-11-05T10:03:46 fixed the way the generator works, extended the testing, especially with * gentest.py testapi.c: fixed the way the generator works, extended the testing, especially with more real trees and nodes. * HTMLtree.c tree.c valid.c xinclude.c xmlIO.c xmlsave.c: a bunch of real problems found and fixed. * entities.c: fix error reporting to go through the new handlers Daniel
Daniel Veillard 3d97e669 2004-11-04T10:49:00 extending the tests coverage more fixes and cleanups Daniel * gentest.py testapi.c: extending the tests coverage * HTMLtree.c tree.c xmlsave.c xpointer.c: more fixes and cleanups Daniel
Daniel Veillard d005b9e8 2004-11-03T17:07:05 more fixes and extending the tests coverage more fixes and hardening * gentest.py testapi.c: more fixes and extending the tests coverage * list.c tree.c: more fixes and hardening Daniel
Daniel Veillard a03e3656 2004-11-02T18:45:30 more developments on the API testing more cleanups rebuilt Daniel * gentest.py testapi.c: more developments on the API testing * HTMLparser.c tree.c: more cleanups * doc/*: rebuilt Daniel
Daniel Veillard 36e5cd50 2004-11-02T14:52:23 adding xmlMemBlocks() work on generator of an automatic API regression * xmlmemory.c include/libxml/xmlmemory.h: adding xmlMemBlocks() * Makefile.am gentest.py testapi.c: work on generator of an automatic API regression test tool. * SAX2.c nanoftp.c parser.c parserInternals.c tree.c xmlIO.c xmlstring.c: various API hardeing changes as a result of running teh first set of automatic API regression tests. * test/slashdot16.xml: apparently missing from CVS, commited it Daniel
Daniel Veillard 95ddcd32 2004-10-26T21:53:55 applied fixes for a couple of potential security problems more fixes on * nanoftp.c: applied fixes for a couple of potential security problems * tree.c valid.c xmllint.c: more fixes on the string interning checks Daniel
Daniel Veillard 03a53c34 2004-10-26T16:06:51 added checking for names values and dictionnaries generates a tons of * debugXML.c include/libxml/xmlerror.h: added checking for names values and dictionnaries generates a tons of errors * SAX2.ccatalog.c parser.c relaxng.c tree.c xinclude.c xmlwriter.c include/libxml/tree.h: fixing the errors in the regression tests Daniel
Daniel Veillard 370ba3d2 2004-10-25T16:23:56 fixed the leak reported by Volker Roth on the list added a specific test * parser.c: fixed the leak reported by Volker Roth on the list * test/ent10 result//ent10*: added a specific test for the problem Daniel
Daniel Veillard 8de5c0bd 2004-10-07T13:14:19 adding the tree debug mode fixing various problems reported by the debug * debugXML.c include/libxml/debugXML.h include/libxml/xmlerror.h: adding the tree debug mode * parser.c relaxng.c tree.c xpath.c: fixing various problems reported by the debug mode. * SAX2.c: another tree fix from Rob Richards Daniel
William M. Brack 2c228440 2004-10-03T04:10:00 changed xmlHasNsProp to properly handle a request for the default * tree.c: changed xmlHasNsProp to properly handle a request for the default namespace (bug 153557)
William M. Brack 13dfa87e 2004-09-18T04:52:08 added the routine xmlNanoHTTPContentLength to the external API * nanohttp.c, include/libxml/nanohttp.h: added the routine xmlNanoHTTPContentLength to the external API (bug151968). * parser.c: fixed unnecessary internal error message (bug152060); also changed call to strncmp over to xmlStrncmp. * encoding.c: fixed compilation warning (bug152307). * tree.c: fixed segfault in xmlCopyPropList (bug152368); fixed a couple of compilation warnings. * HTMLtree.c, debugXML.c, xmlmemory.c: fixed a few compilation warnings; no change to logic.
Daniel Veillard 1f8658a7 2004-08-14T21:46:31 Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert Chin * tree.c: Dodji pointed out a bug in xmlGetNodePath() * xmlcatalog.c: applied patch from Albert Chin to add a --no-super-update option to xmlcatalog see #145461 and another patch also from Albert Chin to not crash on -sgml --del without args see #145462 * Makefile.am: applied another patch from Albert Chin to fix a problem with diff on Solaris #145511 * xmlstring.c: fix xmlCheckUTF8() according to the suggestion in bug #148115 * python/libxml.py: apply fix from Marc-Antoine Parent about the errors in libxml(2).py on the node wrapper #135547 Daniel
William M. Brack 18a04f2a 2004-08-03T16:42:37 fixed problem with memory leak on text nodes in DTD (bug 148965) with * tree.c: fixed problem with memory leak on text nodes in DTD (bug 148965) with patch provided by Darrell Kindred
William M. Brack a3215c7a 2004-07-31T16:24:01 many further little changes for OOM problems. Now seems to be getting * 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.
Daniel Veillard ac996a1d 2004-07-30T12:02:58 applied a couple of patch one from Oliver Stoeneberg and another one from * tree.c: applied a couple of patch one from Oliver Stoeneberg and another one from Rob Richards fixing #148448 Daniel
William M. Brack 42331a90 2004-07-29T07:07:16 further fixes for out of memory condition, mostly from Olivier Andrieu. * SAX2.c, tree.c, uri.c, xmlIO.c, xmlreader.c: further fixes for out of memory condition, mostly from Olivier Andrieu. * testOOM.c: some further improvement by Olivier, with a further small enhancement for easier debugging.
William M. Brack 9f797abd 2004-07-28T07:40:12 implemented patches supplied by Olivier Andrieu (bug 148588), plus made * SAX2.c, error.c, parser.c, tree.c, xmlreader.c: implemented patches supplied by Olivier Andrieu (bug 148588), plus made some further enhancements, to correct some problems with out of memory conditions. * testOOM.c: improved with patches from Olivier Andrieu
William M. Brack 30fe43f6 2004-07-26T18:00:58 put in patch for Windows buffer re-allocation submitted by Steve Hay (bug * tree.c: put in patch for Windows buffer re-allocation submitted by Steve Hay (bug 146697)
Daniel Veillard 62040be3 2004-05-17T03:17:26 avoid returning default namespace when searching from an attribute reverse * tree.c: avoid returning default namespace when searching from an attribute * entities.c xmlwriter.c: reverse xmlEncodeSpecialChars() behaviour back to escaping " since the normal serialization routines do not use it anymore, should close bug #134477 . Tried to make the writer avoid it too but it didn't work. Daniel
Daniel Veillard bf62949f 2004-04-20T22:20:59 small buffer resizing improvement from Morten Welinder closes #140629 * tree.c: small buffer resizing improvement from Morten Welinder closes #140629 Daniel
William M. Brack 57e9e918 2004-03-09T16:19:02 Changed the flag to xmlDocCopyNode (and similar routines), previously used * tree.c: Changed the flag to xmlDocCopyNode (and similar routines), previously used only for recursion, to use a value of '2' to indicate copy properties & namespaces, but not children. * xinclude.c: changed the handling of ranges to use the above new facility. Fixes Bug 134268.
Daniel Veillard 2156d438 2004-03-04T15:59:36 fixing compilation bug with some options disabled as well as * debugXML.c testHTML.c tree.c doc/examples/*.c include/libxml/xmlsave.h: fixing compilation bug with some options disabled as well as --with-minimum should fix #134695 Daniel
Daniel Veillard 1a8741c8 2004-03-04T13:40:59 commiting the new xmlsave module before the actuall big code change. * Makefile.am tree.c xmlsave.c include/libxml/xmlsave.h: commiting the new xmlsave module before the actuall big code change. Daniel
Daniel Veillard 06d2524e 2004-02-25T13:01:42 applied a cleanup patch from Peter Breitenlohner removed a doc build * Makefile.am catalog.c configure.in: applied a cleanup patch from Peter Breitenlohner * tree.c: removed a doc build warning by fixing a param comment * doc/* : rebuilt the docs Daniel
Daniel Veillard cb35f01d 2004-02-20T08:18:58 xmlAttrSerializeTxtContent don't segfault if NULL is passed. adding an old * tree.c: xmlAttrSerializeTxtContent don't segfault if NULL is passed. * test/att7 result//att7*: adding an old regression test laying around on my laptop Daniel
Daniel Veillard 49138f19 2004-02-19T12:58:36 some clarification in xmlDocDumpMemory() documentation fixed xmllint * tree.c: some clarification in xmlDocDumpMemory() documentation * xmllint.c: fixed xmllint --stream --timing to get timings back Daniel
Daniel Veillard 3671190b 2004-02-11T13:25:26 added xmlByteConsumed() interface updated the benchmark rebuilt the docs * parserInternals.c xmlIO.c encoding.c include/libxml/parser.h include/libxml/xmlIO.h: added xmlByteConsumed() interface * doc/*: updated the benchmark rebuilt the docs * python/tests/Makefile.am python/tests/indexes.py: added a specific regression test for xmlByteConsumed() * include/libxml/encoding.h rngparser.c tree.c: small cleanups Daniel
William M. Brack 6f108a1d 2004-02-11T00:14:52 fixed missing output of internal DTD param entities when nothing else * tree.c: fixed missing output of internal DTD param entities when nothing else present in DTD (bug 134052)
William M. Brack a9c612c3 2004-02-01T10:04:05 moved serialization of attribute text data (xmlSerializeContent) into a * tree.c, include/libxml/tree.h: moved serialization of attribute text data (xmlSerializeContent) into a separate routine (xmlSerializeTxtContent) so it can be used by xmlwriter.c * xmlwriter.c: changed handling of attribute string to use the routine above (fixed bug 131548)
William M. Brack 7762bb15 2004-01-04T14:49:01 added a routine xmlStrncatNew to create a new string from 2 frags. added * parser.c, include/libxml/parser.h: added a routine xmlStrncatNew to create a new string from 2 frags. * tree.c: added code to check if node content is from dictionary before trying to change or concatenate.
William M. Brack 84d83e34 2003-12-23T03:45:17 inhibited production of "(null):" in xmlGetNodePath when node has default * tree.c: inhibited production of "(null):" in xmlGetNodePath when node has default namespace (Bug 129710)
MST 2003 John Fleck e1f70496 2003-12-20T23:43:28 tree.c - add explanation of namespace inheritance when ns is NULL to Sat Dec 20 16:42:07 MST 2003 John Fleck <jfleck@inkstain.net> * tree.c - add explanation of namespace inheritance when ns is NULL to xmlNewChild and xmlNewTextChild API doc
MST 2003 John Fleck a0e7e934 2003-12-19T03:13:47 tree.c fix misc. typos in doc comments include/libxml/tree.h elaborate on Thu Dec 18 20:10:34 MST 2003 John Fleck <jfleck@inkstain.net> * tree.c fix misc. typos in doc comments * include/libxml/tree.h elaborate on macro define doc
MST 2003 John Fleck 8b03bc56 2003-12-17T03:45:01 tree.c doc/* Elaborate in documentation discussion of xmlNewChild and Tue Dec 16 20:40:40 MST 2003 John Fleck <jfleck@inkstain.net> * tree.c * doc/* Elaborate in documentation discussion of xmlNewChild and xmlNewTextChild. Thanks to Steve Lenti for pointing out the usefulness of a more explicit explanation of the reserved character escaping issue.
Daniel Veillard 2f6ff81a 2003-12-08T12:11:14 tentative fix for #126117 character reference in attributes output problem * tree.c: tentative fix for #126117 character reference in attributes output problem in some cornercase. Daniel
William M. Brack d7cf7f8d 2003-11-14T07:13:16 minor changes to some comments rebuilt the generated HTML pages for * tree.c: minor changes to some comments * doc/*.html: rebuilt the generated HTML pages for changes from jfleck (bug 126945)
Daniel Veillard 254b1260 2003-11-01T17:04:58 second BeOS patch from Marcin 'Shard' Konicki Daniel * tree.c nanohttp.c threads.c: second BeOS patch from Marcin 'Shard' Konicki Daniel
Daniel Veillard e22dd5ce 2003-10-29T12:53:27 applied a couple of patches from Mark Lilback about text nodes coalescing * tree.c: applied a couple of patches from Mark Lilback about text nodes coalescing Daniel
Daniel Veillard f4e56298 2003-10-28T14:27:41 applied patch from Kasimier Buchcik which fixes a problem in xmlSearchNs * tree.c: applied patch from Kasimier Buchcik which fixes a problem in xmlSearchNs introduced in 2.6.0 Damniel
Daniel Veillard cec50a6a 2003-10-28T13:26:51 fix bug #125047 about serializing when finding a document fragment node. * tree.c: fix bug #125047 about serializing when finding a document fragment node. Daniel
Daniel Veillard 2189b59b 2003-10-21T00:08:42 last minute patch from Eric Zurcher making it into 2.6.0 Daniel * tree.c: last minute patch from Eric Zurcher making it into 2.6.0 Daniel
Daniel Veillard 3e35f8e6 2003-10-21T00:05:38 preparing libxml2-2.6.0 updated and regenerated the docs and API moved the * configure.in NEWS doc/libxml2.xsa: preparing libxml2-2.6.0 * doc/*: updated and regenerated the docs and API * SAX2.c error.c tree.c: moved the line number to their proper field in elements now. Daniel
Daniel Veillard c469692e 2003-10-19T21:47:14 cleanup xmlNodeGetContent() reusing xmlNodeBufGetContent(), tested it * tree.c: cleanup xmlNodeGetContent() reusing xmlNodeBufGetContent(), tested it through the xslt regression suite. Daniel
Daniel Veillard 7869729c 2003-10-19T20:44:43 adding xmlNodeBufGetContent() allowing to grab the content without forcing * tree.c include/libxml/tree.h: adding xmlNodeBufGetContent() allowing to grab the content without forcing allocations. * python/libxml2class.txt doc/libxml2-api.xml: rebuilt the API * xpath.c xmldwalk.c: removed a couple of comment errors. Daniel
William M. Brack 9ca682f5 2003-10-19T10:01:59 fixed segfault when input file not present changed output formatting of * xmlIO.c: fixed segfault when input file not present * tree.c: changed output formatting of XML_CDATA_SECTION (bug 120917)
William M. Brack 76e95df0 2003-10-18T16:20:14 Changed all (?) occurences where validation macros (IS_xxx) had * 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.
William M. Brack 871611bb 2003-10-18T04:53:14 enhanced macros to avoid breaking ABI from previous versions. modified to * 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
Daniel Veillard e2238d56 2003-10-09T13:14:55 converted too small cleanup Daniel * HTMLtree.c include/libxml/xmlerror.h: converted too * tree.c: small cleanup Daniel
Daniel Veillard 828ce83d 2003-10-08T19:19:10 more cleanup through the I/O error path Daniel * error.c tree.c xmlIO.c xmllint.c: more cleanup through the I/O error path Daniel
Daniel Veillard 18ec16e7 2003-10-07T23:16:40 converting the tree module too created a simpler internal error reporting * tree.c: converting the tree module too * error.c include/libxml/xmlerror.h: created a simpler internal error reporting function. Daniel
Daniel Veillard 652327a7 2003-09-29T18:02:38 Adding a configure option to remove tree manipulation code which is not * 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
Daniel Veillard a9cce9cd 2003-09-29T13:20:24 Okay this is scary but it is just adding a configure option to disable * 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
Daniel Veillard 4432df23 2003-09-28T18:58:27 cleanup, creating a new legacy.c module, made sure make tests ran in * 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
Daniel Veillard 9475a352 2003-09-26T12:47:50 added the same htmlRead APIs than their XML counterparts new parser * 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
Daniel Veillard e96a2a4b 2003-09-24T21:23:56 adding repeated parsing and validating tests make the new DOM tree * 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
Daniel Veillard 16fa96c5 2003-09-23T21:50:54 adding a new set of API for parsing xmlReadDoc() xmlReadFile() ... * 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
Daniel Veillard f85ce8e3 2003-09-22T10:24:45 the uri arg to xmlNodeSetBase is really a const xmlChar* addin the * tree.c include/libxml/tree.h: the uri arg to xmlNodeSetBase is really a const xmlChar* * xmlreader.c include/libxml/xmlreader.h: addin the xmlTextReaderConstString() to get an interned string from the reader Daniel
Daniel Veillard e72c508c 2003-09-19T12:44:05 preparing a 2.6.0-beta2 release avoid a warning avoid duplicate code in * 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
Daniel Veillard 5335055e 2003-09-18T13:35:51 add streaming on memory regression tests, found bad bugs in the reader * 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
Daniel Veillard bdbe0d4e 2003-09-14T19:56:14 factoring of more error handling code, serious size reduction and more * 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
Daniel Veillard 2a3fea37 2003-09-12T09:44:56 applied speedup to xmlSearchNs() as suggested by Luca Padovani. Cleaned up * tree.c: applied speedup to xmlSearchNs() as suggested by Luca Padovani. Cleaned up xmlSearchNsByHref() in the process applying the same trick. Daniel
Daniel Veillard 3b7840cd 2003-09-11T23:42:01 adding namespace checkings while making sure they still parse as * 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
Daniel Veillard 07cb8226 2003-09-10T10:51:05 Time to commit 3 days of work rewriting the parser internal, 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
Daniel Veillard e5984080 2003-08-19T22:21:13 fixes a small bug introduced in last commit and detected by valgrind. * tree.c: fixes a small bug introduced in last commit and detected by valgrind. Daniel
Daniel Veillard 6155d8aa 2003-08-19T15:01:28 optimization when freeing hash tables. some tuning of buffer allocations * dict.c hash.c: optimization when freeing hash tables. * parser.c xmlIO.c include/libxml/tree.h: some tuning of buffer allocations * parser.c parserInternals.c include/libxml/parser.h: keep a single allocated block for all the attributes callbacks, avoid useless malloc()/free() * tree.c: do not realloc() when growing a buffer if the buffer ain't full, malloc/memcpy/free avoid copying memory. Daniel
Daniel Veillard 70bcb0ea 2003-08-08T14:00:28 hum try to avoid some troubles when the library is not initialized and one * 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
Daniel Veillard 20aa0fb4 2003-08-04T19:43:15 fixed a small problem in the patch for #118763 this reverts back to the * tree.c: fixed a small problem in the patch for #118763 * result/HTML/doc3.htm*: this reverts back to the previous result Daniel
Daniel Veillard 39057f40 2003-08-04T01:33:43 fixing HTML attribute serialization bug #118763 applying a modified * tree.c: fixing HTML attribute serialization bug #118763 applying a modified version of the patch from Bacek * result/HTML/doc3.htm*: this modifies the output from one test Daniel
Daniel Veillard 8d73bcb5 2003-08-04T01:06:15 added a new API to split a QName without generating any memory allocation * tree.c include/libxml/tree.h: added a new API to split a QName without generating any memory allocation * valid.c: fixed another problem with namespaces on element in mixed content case * python/tests/reader2.py: updated the testcase with Bjorn Reese fix to reader for unsignificant white space * parser.c HTMLparser.c: cleanup. Daniel
Daniel Veillard a6874ca4 2003-07-29T16:47:24 applied Peter Jacobi encoding cleanup patch, and also avoided a possible * parser.c parserInternals.c tree.c: applied Peter Jacobi encoding cleanup patch, and also avoided a possible memory leak Daniel
Daniel Veillard 75eb1adc 2003-07-07T14:42:44 regenerated might fix includes problems with the Ipv6 support on solaris * NEWS doc/*: regenerated * nanoftp.c nanohttp.c: might fix includes problems with the Ipv6 support on solaris * tree.c: patch from Markus Keim about xmlHasNsProp() on attributes defined as #IMPLIED Daniel
Daniel Veillard e1326114 2003-06-05T09:32:20 applied a couple of patches from Mark Itzcovitz to handle saving back * tree.c: applied a couple of patches from Mark Itzcovitz to handle saving back "UTF-16" documents. Daniel
Daniel Veillard d72c7e33 2003-05-12T21:55:03 PI nodes in external subset were not freed :-\ fixes bug #112842 Daniel * tree.c: PI nodes in external subset were not freed :-\ fixes bug #112842 Daniel
Daniel Veillard a067e656 2003-05-01T08:03:46 fixed a problem with xmlUnlinkNode() for DTDs. Daniel * tree.c: fixed a problem with xmlUnlinkNode() for DTDs. Daniel
Daniel Veillard a76fe5ca 2003-04-24T16:06:47 integrated the Out Of Memory test from Havoc Pennington #109368 a lot of * 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
Daniel Veillard a880b124 2003-04-21T21:36:41 a lot of performance work especially the speed of streaming through the * 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