aboutsummaryrefslogtreecommitdiffstats
path: root/xmlwriter.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix xmlTextWriterWriteElement when a null content is givenDaniel Veillard2014-02-081-4/+6
|
* Improve va_list portabilityPatrick Monnerat2013-12-121-4/+8
| | | | | Support for va_list declared as an array (cannot be referenced explicitly)
* Big space and tab cleanupDaniel Veillard2012-09-111-8/+8
| | | | Remove all space before tabs and space and tabs at end of lines.
* Allow to set the quoting character of an xmlWriterCsaba Raduly2012-09-111-0/+20
| | | | | It's otherwise impossible to set the quoting character of attribute values of an xmlWriter.
* Convert the writer to new output buffer and save APIsDaniel Veillard2012-07-231-4/+8
| | | | | Only a handful of places had to be converted for xmlBuf and the new saving entry point.
* * parser.c: use options from current parser context when creatingRob Richards2009-06-191-2/+2
| | | | | a parser context within xmlParseCtxtExternalEntity * xmlwriter.c: fix error message when unable to create output file
* * c14n.c debugXML.c doc/examples/io2.c parser.c schematron.cDaniel Veillard2009-06-041-2/+2
| | | | | valid.c xmlschemas.c xmlwriter.c xpath.c: use %s to printf string patch by Christian Persch, fixes #581612
* cleanups and error reports when xmlTextWriterVSprintf fails, by JinmeiDaniel Veillard2009-02-201-26/+26
| | | | | | | | * xmlwriter.c: cleanups and error reports when xmlTextWriterVSprintf fails, by Jinmei Tatuya daniel svn path=/trunk/; revision=3817
* remove a couple of leaks on errors reported by Jinmei Tatuya danielDaniel Veillard2009-02-201-5/+8
| | | | | | | | * xmlwriter.c: remove a couple of leaks on errors reported by Jinmei Tatuya daniel svn path=/trunk/; revision=3816
* xmlwriter.c: fix indenting in xmlTextWriterFullEndElement for bug# 554353.Rob Richards2008-12-271-0/+8
| | | | svn path=/trunk/; revision=3805
* patch from Alex Khesin fixing CDATA output after a text node. fixed theDaniel Veillard2008-03-041-0/+1
| | | | | | | | | | * xmlwriter.c: patch from Alex Khesin fixing CDATA output after a text node. * parser.c: fixed the comment for xmlParserCleanup * globals.c: fixed indentation Daniel svn path=/trunk/; revision=3699
* applied patch from Alfred Mickautsch to flush the output at the end ofDaniel Veillard2008-02-131-2/+6
| | | | | | | | * xmlwriter.c: applied patch from Alfred Mickautsch to flush the output at the end of document. Daniel svn path=/trunk/; revision=3691
* fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena,Daniel Veillard2008-01-091-0/+5
| | | | | | | | * xmlwriter.c: fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena, should fix #508156 Daniel svn path=/trunk/; revision=3668
* patch from Dodji Seketeli to avoid a leak on repeated uses ofDaniel Veillard2007-07-041-1/+3
| | | | | | | | * xmlwriter.c: patch from Dodji Seketeli to avoid a leak on repeated uses of xmlTextWriterStartDocument() Daniel svn path=/trunk/; revision=3642
* fixed problem with namespace declaration being written more than once perRob Richards2007-06-081-99/+175
| | | | | | | * xmlwriter.c: fixed problem with namespace declaration being written more than once per element start tag svn path=/trunk/; revision=3623
* repositioned #include for libxml.h to avoid compilation error on someWilliam M. Brack2007-01-311-1/+1
| | | | | | | | * testAutomata.c, testRegexp.c, testThreads.c, testThreadsWin32.c, xmlwriter.c: repositioned #include for libxml.h to avoid compilation error on some architectures (bug #398277) svn path=/trunk/; revision=3578
* Add a document to the xmlwriter structure and pass document when writingRob Richards2006-08-161-1/+10
| | | | | * xmlwriter.c: Add a document to the xmlwriter structure and pass document when writing attribute content for encoding support.
* patch from Jason Viers for line breaks after EndPI DanielDaniel Veillard2006-04-271-0/+7
| | | | | * xmlwriter.c: patch from Jason Viers for line breaks after EndPI Daniel
* Insert space between pubid and sysid when both passed toRob Richards2005-12-091-35/+4
| | | | | | * xmlwriter.c: Insert space between pubid and sysid when both passed to xmlTextWriterStartDTD and indenting not being used. Remove no longer used Mem callbacks.
* function consolidation when writing to xmlBuffer. Return error conditionRob Richards2005-11-091-8/+2
| | | | | * xmlIO.c xmlwriter.c: function consolidation when writing to xmlBuffer. Return error condition not len if xmlwriter fails writing to buffer.
* fixed problem in xmlTextWriterVSprintf caused by misuse of vsnprintf addedWilliam M. Brack2005-10-201-1/+25
| | | | | | | | | * xmlwriter.c: fixed problem in xmlTextWriterVSprintf caused by misuse of vsnprintf * configure.in, config.h.in: added a configuration check for va_copy and added a define for VA_COPY for xmlwriter.c fix * parser.c: fixed problem with CRLF split between chunks (bug #319279) (fix provided by Brion Vibber)
* more cleanups based on sparse reports, added "make sparse" DanielDaniel Veillard2005-07-291-6/+6
| | | | | | | * Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c xmlwriter.c: more cleanups based on sparse reports, added "make sparse" Daniel
* applied a patch from Marcus Boerger to fix problems with callingDaniel Veillard2005-07-211-13/+13
| | | | | | | | | | | | * error.c globals.c parser.c runtest.c testHTML.c testSAX.c threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlerror.h include/libxml/xmlexports.h include/libxml/xmlschemas.h: applied a patch from Marcus Boerger to fix problems with calling conventions on Windows this should fix #309757 Daniel
* 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
* applied a patch from Rob Richards fixing a couple of bugs in the writerDaniel Veillard2005-02-231-2/+8
| | | | | | * xmlwriter.c: applied a patch from Rob Richards fixing a couple of bugs in the writer Daniel
* applied patch from Rob Richards to fix a problem withDaniel Veillard2005-02-211-4/+16
| | | | | | * xmlwriter.c: applied patch from Rob Richards to fix a problem with xmlTextWriterStartAttributeNS Daniel
* integrated in "make tests" added -q option, and more conditional featuresDaniel Veillard2004-11-091-1/+1
| | | | | | | | | | | * Makefile.am gentest.py testapi.c: integrated in "make tests" added -q option, and more conditional features fixes * catalog.c debugXML.c parser.c testThreads.c xmllint.c xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h include/libxml/debugXML.h: various compilation and conditional cleanups. * doc/*: regenerated Daniel
* better handling of conditional features more testing on parser contextsDaniel Veillard2004-11-091-2/+12
| | | | | | | * gentest.py testapi.c: better handling of conditional features * HTMLparser.c SAX2.c parserInternals.c xmlwriter.c: more testing on parser contexts closed leaks, error messages Daniel
* augmented types supported a number of new bug fixes and documentationDaniel Veillard2004-11-061-0/+4
| | | | | | | * 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
* more fixes and extending the tests coverage adding a type init interfaceDaniel Veillard2004-11-031-61/+103
| | | | | | | | * gentest.py testapi.c: more fixes and extending the tests coverage * relaxng.c include/libxml/relaxng.h: adding a type init interface * include/libxml/xmlerror.h parser.c xmlreader.c xmlwriter.c: more cleanups and bug fixes raised by the regression tests Daniel
* more fixes and extending the tests coverage more hardeing of APIs skipDaniel Veillard2004-11-031-8/+18
| | | | | | | * gentest.py testapi.c: more fixes and extending the tests coverage * xmlwriter.c list.c: more hardeing of APIs * doc/apibuild.py: skip testapi.c when scanning the C files. Daniel
* added checking for names values and dictionnaries generates a tons ofDaniel Veillard2004-10-261-0/+10
| | | | | | | | * 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
* changed char array initialisation to avoid a complaint from someWilliam M. Brack2004-09-111-3/+10
| | | | | * xmlwriter.c: changed char array initialisation to avoid a complaint from some compiler(s) (bug 152308)
* avoid returning default namespace when searching from an attribute reverseDaniel Veillard2004-05-171-0/+4
| | | | | | | | | | * 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
* minor warning cleanup (no change to logic) fixed return value for internalWilliam M. Brack2004-04-171-3/+3
| | | | | | | * xmlschemas.c, xmlwriter.c, doc/examples/parse4.c, doc/examples/io2.c: minor warning cleanup (no change to logic) * xinclude: fixed return value for internal function xmlXIncludeLoadFallback (now always 0 or -1)
* applied patch from Alfred Mickautsch for better DTD support. fixed bugDaniel Veillard2004-03-221-341/+638
| | | | | | | | | | | | * 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
* applied update from Alfred Mickautsch and the added patch from LucasDaniel Veillard2004-02-171-144/+265
| | | | | | * xmlwriter.c include/libxml/xmlwriter.h: applied update from Alfred Mickautsch and the added patch from Lucas Brasilino Daniel
* fixed problem with return value of xmlTextWriterWriteIndent() (bug 133297)William M. Brack2004-02-061-3/+5
| | | | | * xmlwriter.c: fixed problem with return value of xmlTextWriterWriteIndent() (bug 133297)
* enhanced output indenting (bug 133264)William M. Brack2004-02-031-0/+2
| | | | * xmlwriter.c: enhanced output indenting (bug 133264)
* moved serialization of attribute text data (xmlSerializeContent) into aWilliam M. Brack2004-02-011-5/+11
| | | | | | | | * 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)
* added io1.c an example ox xmlIO usage and io1.res test result, fixed aDaniel Veillard2004-01-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * doc/examples/*: added io1.c an example ox xmlIO usage and io1.res test result, fixed a awful lot of memory leaks showing up in testWriter.c, changed the examples and the Makefiles to test memory leaks. * xmlwriter.c: fixed a memory leak * Makefile.am: run the doc/examples regression tests as part of make tests * xpath.c include/libxml/xpath.h: added xmlXPathCtxtCompile() to compile an XPath expression within a context, currently the goal is to be able to reuse the XSLT stylesheet dictionnary, but this opens the door to others possible optimizations. * dict.c include/libxml/dict.h: added xmlDictCreateSub() which allows to build a new dictionnary based on another read-only dictionnary. This is needed for XSLT to keep the stylesheet dictionnary read-only while being able to reuse the strings for the transformation dictionnary. * xinclude.c: fixed a dictionnar reference counting problem occuring when document parsing failed. * testSAX.c: adding option --repeat for timing 100times the parsing * doc/* : rebuilt all the docs Daniel
* applied patch from Alfred Mickautsch fixing a memory leak reported on theDaniel Veillard2004-01-211-0/+6
| | | | | | * xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory leak reported on the list. Daniel
* fixed Bug130593 fixed compilation warningWilliam M. Brack2004-01-061-2/+3
| | | | | * configure.in: fixed Bug130593 * xmlwriter.c: fixed compilation warning
* applied patch from Lucas Brasilino fixing an indent problem. DanielDaniel Veillard2004-01-051-1/+3
| | | | | | * xmlwriter.c: applied patch from Lucas Brasilino fixing an indent problem. Daniel
* applied the patch from Lucas Brasilino to add indentation support toDaniel Veillard2004-01-021-4/+109
| | | | | | * include/libxml/xmlwriter.h xmlwriter.c: applied the patch from Lucas Brasilino to add indentation support to xmlWriter Daniel
* applied the patch to xmlTextWriterStartPI() suggested by Daniel SchulmanDaniel Veillard2003-12-091-0/+4
| | | | | | * xmlwriter.c: applied the patch to xmlTextWriterStartPI() suggested by Daniel Schulman in #128313 Daniel
* cleanup the make rebuild in doc, this include new directive to stopDaniel Veillard2003-12-051-1/+1
| | | | | | | | | | | | | | | | | * globals.c xmlwriter.c doc/apibuild.py include/libxml/globals.h include/libxml/pattern.h include/libxml/schemasInternals.h include/libxml/xmlexports.h include/libxml/xmlwriter.h: cleanup the make rebuild in doc, this include new directive to stop documentation warnings * doc/* doc/html/*: rebuilt the docs * pattern.c xmlreader.c include/libxml/pattern.h include/libxml/xmlreader.h: adding xmlTextReaderPreservePattern() to save nodes while scanning the tree with the reader, cleanup the way element were freed, and xmlTextReaderPreserve() implementation, the API might change for namespace binding support when compiling patterns. * doc/examples/*: added reader3.c exposing the xmlTextReaderPreserve() Daniel
* added IN_LIBXML macroIgor Zlatkovic2003-11-271-0/+1
|
* applied patch from Robert Stepanek to start import os schemas support,Daniel Veillard2003-11-211-3/+17
| | | | | | | | * xmlschemas.c: applied patch from Robert Stepanek to start import os schemas support, cleaned up stuff and the patch. * test/schemas/import0_0.* result/schemas/import0_0_0*: added test to regression, fixed a few regressions too. Daniel
* applied patch from Alfred Mickautsch, bugfixes and comments added his testDaniel Veillard2003-11-201-20/+461
| | | | | | | | | | * xmlwriter.c include/libxml/xmlwriter.h: applied patch from Alfred Mickautsch, bugfixes and comments * doc/examples/*: added his test as the xmlWriter example * doc/html/ doc/*.html: this resulted in some improvements * include/libxml/hash.h: fixed an inclusion problem when <libxml/hash.h> wasn't preceeded by <xml/parser.h> Daniel