aboutsummaryrefslogtreecommitdiffstats
path: root/xmlsave.c
Commit message (Collapse)AuthorAgeFilesLines
* started to switch xmllint to use xmlSaveDoc to test #342556 fixed #342556Daniel Veillard2006-10-161-15/+77
| | | | | | | | * xmllint.c: started to switch xmllint to use xmlSaveDoc to test #342556 * xmlsave.c: fixed #342556 easy and a whole set of problems with encodings, BOM and xmlSaveDoc() Daniel
* fixed a comment applied a patch from Michael Day to add a new functionDaniel Veillard2006-09-291-1/+1
| | | | | | | | * xmlsave.c: fixed a comment * xinclude.c include/libxml/xinclude.h: applied a patch from Michael Day to add a new function providing the _private field for the generated parser contexts xmlXIncludeProcessFlagsData() Daniel
* Add linefeeds to error messages allowing for consistant handling.Rob Richards2006-08-151-5/+5
| | | | | * HTMLtree.c xmlsave.c: Add linefeeds to error messages allowing for consistant handling.
* Removed the automatic generation of CDATA sections for the content of theKasimier T. Buchcik2006-07-131-1/+9
| | | | | | | | | * xmlsave.c: Removed the automatic generation of CDATA sections for the content of the "script" and "style" elements when serializing XHTML. The issue was reported by Vincent Lefevre, bug #345147. * result/xhtml1 result/noent/xhtml1: Adjusted regression test results due to the serialization change described above.
* applied patch from Geert Jansen to implement the save function to aDaniel Veillard2005-11-091-10/+33
| | | | | | | * 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
* prevent output of fragment tags when serializing XHTML.Rob Richards2005-10-211-0/+4
| | | | * xmlsave.c: prevent output of fragment tags when serializing XHTML.
* release of 2.6.22 updated doc and rebuild. added XML_SAVE_NO_XHTMLDaniel Veillard2005-09-121-7/+9
| | | | | | | | | * NEWS configure.in doc//*: release of 2.6.22 updated doc and rebuild. * xmlsave.c include/libxml/xmlsave.h: added XML_SAVE_NO_XHTML xmlSaveOption * xmlschemas.c: minor cleanups Daniel
* applied second patch from David Madore to be less intrusive when handlingDaniel Veillard2005-09-121-11/+12
| | | | | | | * xmlsave.c: applied second patch from David Madore to be less intrusive when handling scripts and style elements in XHTML1 should fix #316041 * test/xhtml1 result//xhtml1\*: updated the test accordingly Daniel
* add XML_SAVE_NO_EMPTY save option and use option from xmlSaveCtxtPtrRob Richards2005-09-121-10/+38
| | | | | | * include/libxml/xmlsave.h xmlsave.c: add XML_SAVE_NO_EMPTY save option and use option from xmlSaveCtxtPtr rather than global during output. * xmlsave.c: fix some output formatting for meta element under XHTML.
* fix bug #316034, where xmlElemDump() can crash if given a document pointerDaniel Veillard2005-09-121-0/+5
| | | | | | * xmlsave.c: fix bug #316034, where xmlElemDump() can crash if given a document pointer instead of an element Daniel
* check for NULL to prevent crash with meta elementsRob Richards2005-09-031-3/+5
| | | | * xmlsave.c: check for NULL to prevent crash with meta elements
* move handling of meta element for http-equiv in XHTML docs toRob Richards2005-08-261-17/+47
| | | | | * xmlsave.c: move handling of meta element for http-equiv in XHTML docs to serialization and no longer modify internal tree.
* fixed #145092 by adding an xmlSaveOption to omit XML declaration DanielDaniel Veillard2005-08-081-24/+26
| | | | | | * xmlsave.c include/libxml/xmlsave.h: fixed #145092 by adding an xmlSaveOption to omit XML declaration Daniel
* applied patch from Mark Vakoc fixing saving of CDATA with NULL content.Daniel Veillard2005-05-201-12/+17
| | | | | | * xmlsave.c: applied patch from Mark Vakoc fixing saving of CDATA with NULL content. Daniel
* 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 bug reported by Petr Pajas, in the absence of encoding UTF-8 shouldDaniel Veillard2005-03-311-0/+3
| | | | | | | | * xmlsave.c: fixed bug reported by Petr Pajas, in the absence of encoding UTF-8 should really be assumed. This may break if the HTTP headers indicates for example ISO-8859-1 since this then becomes a well formedness error. Daniel
* fixed problem when XMLLINT_INDENT was empty (bug 168033). fixedWilliam M. Brack2005-02-211-2/+4
| | | | | | * xmlsave.c: fixed problem when XMLLINT_INDENT was empty (bug 168033). * xpath.c: fixed compilation warning, no change to logic. * xmlschemastypes.c: fixed compilation warning, no change to logic.
* fixed compilation warning changed xmlWarningMsg so ctxt->errNo is not setWilliam M. Brack2005-02-111-3/+1
| | | | | | | | * dict.c: fixed compilation warning * parser.c: changed xmlWarningMsg so ctxt->errNo is not set * xmllint.c: changed to return non-zero status if error on xinclude processing * xmlsave.c: minor deletion of a redundant condition statement
* trying to fix at least the message from bug #158628 added first xmlsaveDaniel Veillard2005-01-161-0/+7
| | | | | | | | * xmlschemastypes.c: trying to fix at least the message from bug #158628 * include/libxml/xmlsave.h xmlsave.c: added first xmlsave option for format, c.f. bug #159997 Daniel
* autogenerate a minimal NULL value sequence for unknown pointer types ThisDaniel Veillard2004-11-051-0/+2
| | | | | | | | | | | | * 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
* fixed the way the generator works, extended the testing, especially withDaniel Veillard2004-11-051-2/+13
| | | | | | | | | * 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
* extending the tests coverage more fixes and cleanups DanielDaniel Veillard2004-11-041-4/+14
| | | | | | * gentest.py testapi.c: extending the tests coverage * HTMLtree.c tree.c xmlsave.c xpointer.c: more fixes and cleanups Daniel
* fixed 2 problems raised by #152140, one which is that notation not in theDaniel Veillard2004-09-081-4/+8
| | | | | | | | * valid.c xmlsave.c: fixed 2 problems raised by #152140, one which is that notation not in the internal subset should not be saved, and the second more nasty on an error saving NOTATIONs, if there is a proof that nobody uses notations ! Daniel
* added a dumb rule to able to compile tst.c when people submit a sampleDaniel Veillard2004-08-141-0/+4
| | | | | | | | | | | | | * 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
* hack based on Arjan van de Ven suggestion to reduce ELF footprint andDaniel Veillard2004-06-271-3/+1
| | | | | | | | | | | | | | * elfgcchack.h doc/elfgcchack.xsl libxml.h: hack based on Arjan van de Ven suggestion to reduce ELF footprint and generated code. Based on aliasing of libraries function to generate direct call instead of indirect ones * doc/libxml2-api.xml doc/Makefile.am doc/apibuild.py: added automatic generation of elfgcchack.h based on the API description, extended the API description to show the conditionals configuration flags required for symbols. * nanohttp.c parser.c xmlsave.c include/libxml/*.h: lot of cleanup * doc/*: regenerated the docs. Daniel
* start adding API for escaping customization. DanielDaniel Veillard2004-05-151-24/+44
| | | | | | * xmlsave.c include/libxml/xmlsave.h: start adding API for escaping customization. Daniel
* more xmlSave cleanup, optimization and refactoring DanielDaniel Veillard2004-05-151-234/+238
| | | | | * xmlsave.c: more xmlSave cleanup, optimization and refactoring Daniel
* third pass at the escaping refactoring. DanielDaniel Veillard2004-05-141-32/+178
| | | | | * xmlIO.c xmlsave.c: third pass at the escaping refactoring. Daniel
* second pass on escaping handling, start to looks better, need to beDaniel Veillard2004-05-141-4/+4
| | | | | | | * 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
* first pass at refactoring the escape on save routines for betterDaniel Veillard2004-05-131-32/+40
| | | | | | | | * 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
* apply fix for XHTML1 formating from Nick Wellnhofer fixes bug #141266Daniel Veillard2004-05-091-0/+4
| | | | | | | | * xmlsave.c: apply fix for XHTML1 formating from Nick Wellnhofer fixes bug #141266 * test/xhtmlcomp result//xhtmlcomp*: added the specific regression test Daniel
* Fixed bug #141529 i.e. various problems when building with --without-htmlDaniel Veillard2004-04-301-4/+2
| | | | | | * xmllint.c xmlsave.c python/generator.py python/libxml.c: Fixed bug #141529 i.e. various problems when building with --without-html Daniel
* fix a nasty problem with reading over the end fix a reported memory leakDaniel Veillard2004-04-291-0/+2
| | | | | | * xmlreader.c: fix a nasty problem with reading over the end * xmlsave.c: fix a reported memory leak apparently Daniel
* move the TODO as comments as the function while not finished are usableDaniel Veillard2004-04-161-2/+4
| | | | | | | | | | * xmlsave.c: move the TODO as comments as the function while not finished are usable as-is * xmlschemas.c include/libxml/xmlerror.h: patch from Kasimier Buchcik implementing union * test/schemas/union_0_0.x* result/schemas/union_0_0*: added example * python/Makefile.am: applied fix from Mike Hommey Daniel
* optimize indentation based on the new context DanielDaniel Veillard2004-03-281-12/+54
| | | | | * xmlsave.c: optimize indentation based on the new context Daniel
* switched the output routines to use the new context. DanielDaniel Veillard2004-03-151-196/+213
| | | | | * xmlsave.c: switched the output routines to use the new context. Daniel
* commiting the new xmlsave module before the actuall big code change.Daniel Veillard2004-03-041-0/+1950
* Makefile.am tree.c xmlsave.c include/libxml/xmlsave.h: commiting the new xmlsave module before the actuall big code change. Daniel