xmlIO.c


Log

Author Commit Date CI Message
Daniel Veillard 18b89885 2015-11-03T15:46:29 Reenable xz support by default For https://bugzilla.gnome.org/show_bug.cgi?id=757466 problem was introduced by commit f3f86ff465c92c79f834d7b981f3c7274a8bb5c8 for https://bugzilla.gnome.org/show_bug.cgi?id=711026
Daniel Veillard 7a72f4af 2014-10-13T16:23:24 Fix a couple of issues raised by make dist
Philip Withnall 21699937 2014-08-24T23:10:13 xmlIO: Handle error returns from dup() If dup() fails and returns -1, gzdopen() will transparently return NULL, but then close() will fail after being called on an invalid FD. Change the code to only call close() on valid FDs. Coverity issue: #72382
Gaurav Gupta b8480ae7 2014-07-26T21:14:53 Remove a couple of dead conditions For https://bugzilla.gnome.org/show_bug.cgi?id=733711
Philip Withnall 31aa3815 2014-06-20T21:11:40 xmlIO: Fix an FD leak on gzdopen() failure According to the documentation, gzdopen() does not close the FD on failure (but does effectively close it on success, since gzclose() closes it). Coverity issues: #60440, #60441 https://bugzilla.gnome.org/show_bug.cgi?id=731990
Patrick Monnerat 147aaf21 2013-12-12T15:02:40 Portability fix Don't assume fileno for stdin and stdout are 0 and 1
Daniel Veillard 63588f47 2013-05-10T14:01:46 Fix a regression in xmlGetDocCompressMode() The switch to xzlib had for consequence that the compression level of the input was not gathered anymore in ctxt->input->buf, then the parser compression flags was left to -1 and propagated to the resulting document. Fix the I/O layer to get compression detection in xzlib, then carry it in the input buffer and the resulting document This should fix https://lsbbugs.linuxfoundation.org/show_bug.cgi?id=3456
Mikhail Titov 8e2098ae 2013-03-27T11:00:31 Fix an output buffer flushing conversion bug for https://bugzilla.gnome.org/show_bug.cgi?id=694982 On a flush operation, everything must be converted
Daniel Veillard bf058dce 2013-02-13T18:19:42 Fix the flushing out of raw buffers on encoding conversions https://bugzilla.gnome.org/show_bug.cgi?id=692915 the new set of converting functions tried to limit the encoding conversion of the raw buffer to the consumption one to work in a more progressive fashion. Unfortunately this was bad for performances and led to errors on progressive parsing when a very large chunk was close to the end of the document. Fix the new internal function and switch back to the old way of converting. Fix another bug in the process.
Daniel Veillard 153cf159 2012-10-26T13:50:47 Fix large parse of file from memory https://bugzilla.redhat.com/show_bug.cgi?id=862969 The new code trying to detect excessive input lookup would just get wrong sometimes in the case of very large file parsed directly from memory.
Daniel Veillard f8e3db04 2012-09-11T13:26:36 Big space and tab cleanup Remove all space before tabs and space and tabs at end of lines.
Michael Stahl 55b899a2 2012-09-07T12:14:00 Support long path names on WNT so we've got this patch to libxml2 2.7.6 in the LibreOffice code base, inherited from OOo. it fixes a definite problem, which is that Windows has a rather low maximum path length restriction, and there is a special trick on NT whereby path names can be prefixed with "\\?\", in which case the maximum length is 32k, which ought to be sufficient even for bloated office suites :) I'll attach the patch to the xmlCanonicPath function. note that i didn't write this and am by no means an expert on either Microsoftean platforms or libxml so maybe it's not the best way to do it.
Roumen Petrov 89b6f73a 2012-08-04T05:09:56 use xmlBuf... if DEBUG_INPUT is defined
Daniel Veillard e258adec 2012-08-06T11:16:30 Provide new accessors for xmlOutputBuffer To avoid digging into buf->buffer insternal strcuture the two new entry points xmlOutputBufferGetContent() and xmlOutputBufferGetSize() should make the ode cleaner. * include/libxml/xmlIO.h: add two new functions * xmlIO.c: impement the 2 functions based on the new buffer entry points
Daniel Veillard a6a6e70c 2012-07-16T14:22:54 Convert xmlIO.c to the new input and output buffers Relatively mechanical changes, this also led to a couple of fixes upon review of the I/O code on buffer usage.
Daniel Veillard adf5ec94 2012-01-26T16:56:22 Cleanups of lzma support - fix inclusion of the separated file - use namespaced name for the 4 non-static routines - add padding after external structures included in-situ - add new requirement to spec file - general cleanup of code
Anders F Bjorklund 6bdc7743 2011-09-19T09:53:20 move xz/lzma helpers to separate included files
Anders F Bjorklund eae52617 2011-09-18T16:59:13 add lzma compression support
Mark Adler a7e79f28 2010-01-19T16:28:48 libxml violates the zlib interface and crashes * xmlIO.c: remove an abuse of zlib API and use a clean interface available in zlib >= 1.2.3
Daniel Veillard 0d5e58f3 2009-08-24T13:52:23 542394 xmlRegisterOutputCallbacks MAX_INPUT_CALLBACK * xmlIO.c: trivial fix, wrong constant
Rob Richards 6c61e020 2009-08-12T11:41:27 Fix windows build
Hans Breuer 2ad41cad 2009-08-11T17:51:22 574393 – utf-8 filename magic for compressed files * xmlIO.c: windows specific magic to have UTF-8 file name work with compressed files too.
Daniel Veillard 43bc89c1 2009-03-23T19:32:04 add a missing check in xmlAddSibling, patch by Kris Breuker avoid * tree.c: add a missing check in xmlAddSibling, patch by Kris Breuker * xmlIO.c: avoid xmlAllocOutputBuffer using XML_BUFFER_EXACT which leads to performances problems especially on Windows. daniel svn path=/trunk/; revision=3820
Daniel Veillard da3fee40 2008-09-01T13:08:57 Borland C fix from Moritz Both regenerate, workaround a problem for buffer * trionan.c: Borland C fix from Moritz Both * testapi.c: regenerate, workaround a problem for buffer testing * xmlIO.c HTMLtree.c: new internal entry point to hide even better xmlAllocOutputBufferInternal * tree.c: harden the code around buffer allocation schemes * parser.c: restore the warning when namespace names are not absolute URIs * runxmlconf.c: continue regression tests if we get the expected number of errors * Makefile.am: run the python tests on make check * xmlsave.c: handle the HTML documents and trees * python/libxml.c: convert python serialization to the xmlSave APIs and avoid some horrible hacks Daniel svn path=/trunk/; revision=3790
Daniel Veillard 1572425c 2008-08-30T15:01:04 preparing 2.7.0 release remove some testing traces remove some warnings * configure.in, doc/*: preparing 2.7.0 release * tree.c: remove some testing traces * parser.c xmlIO.c xmlschemas.c: remove some warnings Daniel svn path=/trunk/; revision=3788
Daniel Veillard e83e93e7 2008-08-30T12:52:26 make a new kind of buffer where shrinking and adding in head can avoid * include/libxml/tree.h tree.c: make a new kind of buffer where shrinking and adding in head can avoid reallocation or full buffer memmoves * encoding.c xmlIO.c: use the new kind of buffers for output buffers Daniel svn path=/trunk/; revision=3787
Daniel Veillard c4ba8a42 2008-02-16T10:08:14 fix output bug reported by Petr Pajas and analyzed by Bill Daniel * xmlIO.c: fix output bug reported by Petr Pajas and analyzed by Bill Daniel svn path=/trunk/; revision=3695
Rob Richards f779da31 2007-08-14T09:41:21 fixed windows path determination (patch from Roland Schwarz, bug #462877) * xmlIO.c: fixed windows path determination (patch from Roland Schwarz, bug #462877) * win32/Makefile.mingw win32/configure.js: fixed mingw build (patch from Roland Schwarz, bug #462877) svn path=/trunk/; revision=3648
Daniel Veillard 5cdbbd2c 2007-06-12T09:39:14 workaround misgenerated file: URIs c.f. #437385 daniel * xmlIO.c: workaround misgenerated file: URIs c.f. #437385 daniel svn path=/trunk/; revision=3630
William M. Brack 38d452ac 2007-05-22T16:00:06 Fixed typo in xmlCharEncFirstLine pointed out by Mark Rowe (bug #440159) * encoding.c: Fixed typo in xmlCharEncFirstLine pointed out by Mark Rowe (bug #440159) * include/libxml/xmlversion.h.in: Added check for definition of _POSIX_C_SOURCE to avoid warnings on Apple OS/X (patch from Wendy Doyle and Mark Rowe, bug #346675) * schematron.c, testapi.c, tree.c, xmlIO.c, xmlsave.c: minor changes to fix compilation warnings - no change to logic. svn path=/trunk/; revision=3618
Daniel Veillard 59d3ed8f 2007-04-17T12:44:58 applied patch from Andreas Stricke to ease the compilation on Windows CE * catalog.c libxml.h win32/wince/wincecompat.h win32/wince/wincecompat.c xmlIO.c nanohttp.c nanoftp.c trio.c triostr.c triostr.h: applied patch from Andreas Stricke to ease the compilation on Windows CE Daniel svn path=/trunk/; revision=3600
Daniel Veillard bd672bc5 2007-03-30T12:39:25 applied change from Michael Day to avoid a problem when compiled without * xmlIO.c: applied change from Michael Day to avoid a problem when compiled without zlib support. Daniel svn path=/trunk/; revision=3596
Rob Richards 6460f925 2006-10-12T21:08:29 fix Windows compile - missing xmlWrapOpen. * xmlIO.c: fix Windows compile - missing xmlWrapOpen.
Daniel Veillard 6ad5c4af 2006-10-11T16:43:06 fixed a weird error where validity context whould not show up if warnings * valid.c: fixed a weird error where validity context whould not show up if warnings were disabled pointed out by Bob Stayton * xmlIO.c doc/generator.py: cleanup and fix to regenerate the docs * doc//* testapi.c: rebuilt the docs Daniel
Daniel Veillard e8967e0d 2006-10-11T09:15:00 applied patch from Mikhail Zabaluev fixing the conditions of unescaping * xmlIO.c: applied patch from Mikhail Zabaluev fixing the conditions of unescaping from URL to filepath, should fix #344588. Daniel
Daniel Veillard 0da41666 2006-10-10T09:05:36 applied a portability patch from Emelyanov Alexey Daniel * xmlIO.c: applied a portability patch from Emelyanov Alexey Daniel
Daniel Veillard ad4e2963 2006-09-21T08:36:38 applied patch from Michael Day doing some refactoring for the catalog * xmlIO.c: applied patch from Michael Day doing some refactoring for the catalog entity loaders. Daniel
Daniel Veillard 8ca85b25 2006-09-01T09:56:07 another patch from Emelyanov Alexey to clean up a few things in the * xmlIO.c: another patch from Emelyanov Alexey to clean up a few things in the previous patch. Daniel
Daniel Veillard e5a3f37f 2006-08-30T13:11:36 applied patch from Roland Schwingel to fix the problem with file names in * xmlIO.c: applied patch from Roland Schwingel to fix the problem with file names in UTF-8 on Windows, and compat on older win9x versions. Daniel
Daniel Veillard 0b309954 2006-05-02T20:34:38 fix a mix of code and declarations showing up on Windows patch from * xmlIO.c: fix a mix of code and declarations showing up on Windows patch from Kjartan Maraas, fixing #340404 Daniel
Daniel Veillard f741601c 2006-04-27T08:15:20 applied patch from Roland Schwingel to allow UTF-8 file paths on Windows * xmlIO.c: applied patch from Roland Schwingel to allow UTF-8 file paths on Windows Daniel
Daniel Veillard 4d3866cf 2005-11-13T12:43:59 applied patch from Geert Jansen to remove xmlBufferClose() which is not * xmlIO.c: applied patch from Geert Jansen to remove xmlBufferClose() which is not needed. Daniel
Rob Richards a44f234d 2005-11-09T18:03:45 function consolidation when writing to xmlBuffer. Return error condition * xmlIO.c xmlwriter.c: function consolidation when writing to xmlBuffer. Return error condition not len if xmlwriter fails writing to buffer.
Daniel Veillard 9a00fd29 2005-11-09T08:56:26 applied patch from Geert Jansen to implement the save function to a * xmlsave.c xmlIO.c include/libxml/xmlIO.h include/libxml/xmlsave.h: applied patch from Geert Jansen to implement the save function to a xmlBuffer, and a bit of cleanup. Daniel
Daniel Veillard 9b693b48 2005-10-28T14:54:17 more portability patches from Albert Chin for HP-UX and AIX Daniel * xmlIO.c xmlmodule.c: more portability patches from Albert Chin for HP-UX and AIX Daniel
Daniel Veillard 336a8e13 2005-08-07T10:46:19 get rid of the dependancy on a locally installed DTD try to cleanup the * test/relaxng/docbook_0.xml: get rid of the dependancy on a locally installed DTD * uri.c include/libxml/uri.h xmlIO.c nanoftp.c nanohttp.c: try to cleanup the Path/URI conversion mess, needed fixing in various layers and a new API to the uri module which also fixes #306861 * runtest.c: integrated a regression test specific to check the URI conversions done before calling the I/O handlers. Daniel
Daniel Veillard 24505b0f 2005-07-28T23:49:35 a lot of small cleanups based on Linus' sparse check output. Daniel * HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c runsuite.c runtest.c schematron.c testHTML.c testReader.c testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of small cleanups based on Linus' sparse check output. Daniel
Daniel Veillard 8fcd2cac 2005-07-03T14:42:56 fixed bug #307503 misplaced #ifdef Daniel * xmlIO.c: fixed bug #307503 misplaced #ifdef 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
William M. Brack 66e40b14 2004-11-26T15:45:19 added a check within xmlOutputBufferWriteEscape to prevent a dead loop on * xmlIO.c: added a check within xmlOutputBufferWriteEscape to prevent a dead loop on bad data (bug 159550)
Daniel Veillard 5ea30d7f 2004-11-08T11:54:28 more fixes. Daniel * parser.c testapi.c xmlIO.c xmlstring.c: more fixes. Daniel
Daniel Veillard 42595323 2004-11-08T10:52:06 more types, more coverage more problems fixed Daniel * gentest.py testapi.c: more types, more coverage * parser.c parserInternals.c relaxng.c valid.c xmlIO.c xmlschemastypes.c: more problems fixed Daniel
Daniel Veillard ce682bc2 2004-11-05T17:22:25 autogenerate a minimal NULL value sequence for unknown pointer types This * gentest.py testapi.c: autogenerate a minimal NULL value sequence for unknown pointer types * HTMLparser.c SAX2.c chvalid.c encoding.c entities.c parser.c parserInternals.c relaxng.c valid.c xmlIO.c xmlreader.c xmlsave.c xmlschemas.c xmlschemastypes.c xmlstring.c xpath.c xpointer.c: This uncovered an impressive amount of entry points not checking for NULL pointers when they ought to, closing all the open gaps. 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 34099b40 2004-11-04T17:34:35 changing the way the .c is generated, extending the tests coverage fixing * gentest.py testapi.c: changing the way the .c is generated, extending the tests coverage * include/libxml/nanoftp.h nanoftp.c elfgcchack.h doc/*: fixing some function signatures, regenerating stuff * SAX2.c parser.c xmlIO.c: another set of bug fixes and API hardening Daniel
Daniel Veillard b1b3a3e9 2004-11-03T23:25:47 more fixes and extending the tests coverage more fixes and hardening * gentest.py testapi.c: more fixes and extending the tests coverage * nanoftp.c xmlIO.c: more fixes and hardening 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 c7e3cc49 2004-09-28T12:33:52 another patch from Malcolm Tredinnick fixing warning generated by the * acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c xmlschemastypes.c: another patch from Malcolm Tredinnick fixing warning generated by the Nonstop Kernel Open System Services compiler #151710 Daniel
Daniel Veillard 71b95638 2004-08-31T12:15:36 fixing #151456, an encoding error could generate a serialization loop. * xmlIO.c: fixing #151456, an encoding error could generate a serialization loop. Daniel
Daniel Veillard 29b17482 2004-08-16T00:39:03 small typo pointed out by Mike Hommey slightly improved the --c14n * xmlIO.c: small typo pointed out by Mike Hommey * doc/xmllint.xml, xmllint.html, xmllint.1: slightly improved the --c14n description, c.f. #144675 . * nanohttp.c nanoftp.c: applied a first simple patch from Mike Hommey for $no_proxy, c.f. #133470 * parserInternals.c include/libxml/parserInternals.h include/libxml/xmlerror.h: cleanup to avoid 'error' identifier in includes # * parser.c SAX2.c debugXML.c include/libxml/parser.h: first version of the inplementation of parsing within the context of a node in the tree #142359, new function xmlParseInNodeContext(), added support at the xmllint --shell level as the "set" function * test/scripts/set* result/scripts/* Makefile.am: extended the script based regression tests to instrument the new function. Daniel
William M. Brack 4e3a9fa1 2004-08-03T22:41:11 elaborated on description of xmlValidityWarningFunc and * include/libxml/valid.h: elaborated on description of xmlValidityWarningFunc and xmlValidityErrorFunc (bug 144760) * xmlIO.c, xmlschemastypes.c, include/libxml/schemasinternals.h: minor fixes to comments for doc rebuilding errors. * doc/*.html: rebuilt the docs
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.
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.
Daniel Veillard 1b243b4f 2004-06-08T10:16:42 applied patch from Rob Richards for the per thread I/O mappings Daniel * globals.c xmlIO.c include/libxml/globals.h include/libxml/xmlIO.h: applied patch from Rob Richards for the per thread I/O mappings Daniel
Daniel Veillard 0335a846 2004-06-02T16:18:40 applied patch from Rob Richards for custom I/O BufferCreateFilenane fixes * globals.c xmlIO.c include/libxml/globals.h: applied patch from Rob Richards for custom I/O BufferCreateFilenane fixes bug #143366 Daniel
Daniel Veillard 83a75e05 2004-05-14T21:50:42 third pass at the escaping refactoring. Daniel * xmlIO.c xmlsave.c: third pass at the escaping refactoring. Daniel
Daniel Veillard ee8960bc 2004-05-14T03:25:14 second pass on escaping handling, start to looks better, need to be * xmlIO.c xmlsave.c include/libxml/xmlIO.h: second pass on escaping handling, start to looks better, need to be completed and added directly at the saving context level. Daniel
Daniel Veillard 5d1a4d81 2004-05-13T14:31:25 first pass at refactoring the escape on save routines for better * xmlIO.c xmlsave.c include/libxml/xmlIO.h: first pass at refactoring the escape on save routines for better performances (less malloc) and more flexibility using the new saving context. Preliminary work, interface will change. Daniel
Daniel Veillard 18a65095 2004-05-11T15:57:42 fix to the fix for #141864 from Paul Elseth apply fix from David Gatwood * xmlIO.c: fix to the fix for #141864 from Paul Elseth * HTMLparser.c result/HTML/doc3.htm: apply fix from David Gatwood for #141195 about text between comments. Daniel
Daniel Veillard 966a31e2 2004-05-09T02:58:44 fixing some problems in URI unescaping and output buffer opening, this * uri.c xmlIO.c: fixing some problems in URI unescaping and output buffer opening, this should fix #141864 Daniel
Daniel Veillard aecc0dc1 2004-05-08T02:32:07 fixes the use of 'list' as a parameter added xmlPopInputCallback for Matt * valid.c include/libxml/valid.h: fixes the use of 'list' as a parameter * xmlIO.c include/libxml/xmlIO.h: added xmlPopInputCallback for Matt Sergeant Daniel
Daniel Veillard 500a1de5 2004-03-22T15:22:58 applied patch from Alfred Mickautsch for better DTD support. fixed bug * xmlwriter.c include/libxml/xmlwriter.h doc/* : applied patch from Alfred Mickautsch for better DTD support. * SAX2.c HTMLparser.c parser.c xinclude.c xmllint.c xmlreader.c xmlschemas.c: fixed bug #137867 i.e. fixed properly the way reference counting is handled in the XML parser which had the side effect of removing a lot of hazardous cruft added to try to fix the problems associated as they popped up. * xmlIO.c: FILE * close fixup for stderr/stdout 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
Daniel Veillard 61b9338c 2003-11-03T14:28:31 implemented the XML_PARSE_NONET parser option. converted xmllint.c to use * parser.c xmlIO.c include/libxml/parserInternals.h: implemented the XML_PARSE_NONET parser option. * xmllint.c: converted xmllint.c to use the option instead of relying on the global resolver variable. Daniel
Daniel Veillard 157fee01 2003-10-31T10:36:03 previous fix for #124044 was broken, correct fix provided. fix * python/libxml.c: previous fix for #124044 was broken, correct fix provided. * HTMLparser.c parser.c parserInternals.c xmlIO.c: fix xmlStopParser() and the error handlers to address #125877 Daniel
William M. Brack c5cbf99d 2003-10-29T22:15:13 enhanced to bypass compression detection code when input file is stdin * xmlIO.c: enhanced to bypass compression detection code when input file is stdin (bug 125801)
Daniel Veillard 28232438 2003-10-29T17:23:05 fix needed when HTTP is not compiled in by Mark Vakoc Daniel * xmlIO.c: fix needed when HTTP is not compiled in by Mark Vakoc Daniel
Daniel Veillard e8039dfe 2003-10-27T11:25:13 make sure we report errors if xmlNewInputFromFile() fails. avoid using * libxml.h parserInternals.c xmlIO.c: make sure we report errors if xmlNewInputFromFile() fails. * xmlreader.c: avoid using _private for the node or document elements. Daniel
Daniel Veillard d61e8fbc 2003-10-19T21:59:17 fixes for compiling using --with-minimum Daniel * valid.c xmlIO.c: fixes for compiling using --with-minimum Daniel
Daniel Veillard a840b692 2003-10-19T13:35:37 Fixed the HTTP<->parser interraction, which should fix 2 long standing * include/libxml/nanohttp.h include/libxml/parserInternals.h include/libxml/xmlIO.h nanohttp.c parserInternals.c xmlIO.c: Fixed the HTTP<->parser interraction, which should fix 2 long standing bugs #104790 and #124054 , this also fix the fact that HTTP error code (> 400) should not generate data, we usually don't want to parse the HTML error information instead of the resource looked at. 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)
Daniel Veillard 847332a0 2003-10-18T11:29:40 starting work to fix the HTTP/XML parser integration. Daniel * nanohttp.c xmlIO.c include/libxml/nanohttp.h: starting work to fix the HTTP/XML parser integration. Daniel
Daniel Veillard 2b0f8799 2003-10-10T19:36:36 fixed a nasty bug with interning some text strings prepare for beta5 of * SAX2.c: fixed a nasty bug with interning some text strings * configure.in: prepare for beta5 of 2.6.0 * libxml.h nanoftp.c nanohttp.c xmlIO.c include/libxml/xmlerror.h: better error handling for I/O and converted FTP and HTTP * parser.c: fixed another bug Daniel
Daniel Veillard 659e71ec 2003-10-10T14:10:40 Setting up the framework for structured error reporting, touches a lot of * 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
Daniel Veillard cd6ff282 2003-10-08T22:38:13 final error handling cleanup converted XInclude to the new error handling * xmlIO.c: final error handling cleanup * xinclude.c error.c: converted XInclude to the new error handling * include/libxml/xmlerror.h: added XInclude errors Daniel
Daniel Veillard a8856220 2003-10-08T19:26:03 Oops, 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 97bf4d02 2003-10-08T18:58:28 better handling of error cases Daniel * xmlIO.c: better handling of error cases Daniel
Daniel Veillard 05d987b4 2003-10-08T11:54:57 first pass at cleaning up error handling in the I/O module. Daniel * xmlIO.c xmllint.c include/libxml/xmlerror.h: first pass at cleaning up error handling in the I/O module. Daniel
Daniel Veillard 8127390f 2003-09-30T00:43:48 added 2 new configure option: --with-reader --with-sax1 to allow removing * 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
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 9ec2653a 2003-09-23T07:43:19 applied patch from Markus Keim fixing a problem with I/O callback * xmlIO.c: applied patch from Markus Keim fixing a problem with I/O callback registration. * include/libxml/xmlerror.h: fixed #122994 comment numbering for xmlParserErrors 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 8d8bf2c5 2003-09-17T19:36:25 small fix from Rob Richards for input filename fixes for --repeat and * parserInternals.c: small fix from Rob Richards for input filename * xmllint.c: fixes for --repeat and --memory/--stream for speed tests * xmlIO: adding a guard in one function 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
William M. Brack c07329e2 2003-09-08T01:57:30 Implemented detection of compressed files, setting doc->compressed * xmlIO.c include/libxml/xmlIO.h parser.c: Implemented detection of compressed files, setting doc->compressed appropriately (bug #120503).
William M. Brack 4811ba3b 2003-09-06T18:02:53 fixed bug #121210 (callback to sax->error, sax->warning with wrong * SAX2.c, xmlIO.c: fixed bug #121210 (callback to sax->error, sax->warning with wrong params).
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