1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 13:25:05 +03:00
Commit Graph

48 Commits

Author SHA1 Message Date
Rob Richards
798743a498 * parser.c: use options from current parser context when creating
a parser context within xmlParseCtxtExternalEntity
* xmlwriter.c: fix error message when unable to create output file
2009-06-19 13:54:25 -04:00
Daniel Veillard
bccae2d210 * c14n.c debugXML.c doc/examples/io2.c parser.c schematron.c
valid.c xmlschemas.c xmlwriter.c xpath.c: use %s to printf string
  patch by Christian Persch, fixes #581612
2009-06-04 11:22:45 +02:00
Daniel Veillard
cb0ae19174 cleanups and error reports when xmlTextWriterVSprintf fails, by Jinmei
* xmlwriter.c: cleanups and error reports when xmlTextWriterVSprintf
  fails, by Jinmei Tatuya
daniel

svn path=/trunk/; revision=3817
2009-02-20 08:40:55 +00:00
Daniel Veillard
eb0a0b2e31 remove a couple of leaks on errors reported by Jinmei Tatuya daniel
* xmlwriter.c: remove a couple of leaks on errors reported by
  Jinmei Tatuya
daniel

svn path=/trunk/; revision=3816
2009-02-20 08:19:53 +00:00
Rob Richards
5a7d8bdf71 xmlwriter.c: fix indenting in xmlTextWriterFullEndElement for bug# 554353.
svn path=/trunk/; revision=3805
2008-12-27 13:17:43 +00:00
Daniel Veillard
ccc476f177 patch from Alex Khesin fixing CDATA output after a text node. fixed the
* 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
2008-03-04 13:19:49 +00:00
Daniel Veillard
3ff24115d2 applied patch from Alfred Mickautsch to flush the output at the end of
* xmlwriter.c: applied patch from Alfred Mickautsch to flush the
  output at the end of document.
Daniel

svn path=/trunk/; revision=3691
2008-02-13 10:17:41 +00:00
Daniel Veillard
7e26fb4b10 fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena,
* xmlwriter.c: fix indentation in xmlTextWriterFullEndElement,
  as raised by Felipe Pena, should fix #508156
Daniel

svn path=/trunk/; revision=3668
2008-01-09 02:19:50 +00:00
Daniel Veillard
caa1951d59 patch from Dodji Seketeli to avoid a leak on repeated uses of
* xmlwriter.c: patch from Dodji Seketeli to avoid a leak on repeated
  uses of xmlTextWriterStartDocument()
Daniel

svn path=/trunk/; revision=3642
2007-07-04 15:42:46 +00:00
Rob Richards
b8769d6f24 fixed problem with namespace declaration being written more than once per
* xmlwriter.c: fixed problem with namespace declaration being 
  written more than once per element start tag

svn path=/trunk/; revision=3623
2007-06-08 08:50:47 +00:00
William M. Brack
c1099be5eb repositioned #include for libxml.h to avoid compilation error on some
* 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
2007-01-31 18:38:56 +00:00
Rob Richards
9db68f0c14 Add a document to the xmlwriter structure and pass document when writing
* xmlwriter.c: Add a document to the xmlwriter structure and
  pass document when writing attribute content for encoding support.
2006-08-16 22:48:51 +00:00
Daniel Veillard
02c1f23297 patch from Jason Viers for line breaks after EndPI Daniel
* xmlwriter.c: patch from Jason Viers for line breaks after EndPI
Daniel
2006-04-27 08:10:25 +00:00
Rob Richards
ffe47feb27 Insert space between pubid and sysid when both passed to
* xmlwriter.c: Insert space between pubid and sysid when both
  passed to xmlTextWriterStartDTD and indenting not being used.
  Remove no longer used Mem callbacks.
2005-12-09 17:52:21 +00:00
Rob Richards
a44f234d3a 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.
2005-11-09 18:03:45 +00:00
William M. Brack
f4caa5e698 fixed problem in xmlTextWriterVSprintf caused by misuse of vsnprintf added
* 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)
2005-10-20 09:04:05 +00:00
Daniel Veillard
75e389d4e0 more cleanups based on sparse reports, added "make sparse" Daniel
* Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c
  xmlwriter.c: more cleanups based on sparse reports, added
  "make sparse"
Daniel
2005-07-29 22:02:24 +00:00
Daniel Veillard
ffa3c74933 applied a patch from Marcus Boerger to fix problems with calling
* 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
2005-07-21 13:24:09 +00:00
Daniel Veillard
5d4644ef6e 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
2005-04-01 13:11:58 +00:00
Daniel Veillard
614fdc13b7 applied a patch from Rob Richards fixing a couple of bugs in the writer
* xmlwriter.c: applied a patch from Rob Richards fixing a couple
  of bugs in the writer
Daniel
2005-02-23 14:05:37 +00:00
Daniel Veillard
bd8fb0adc0 applied patch from Rob Richards to fix a problem with
* xmlwriter.c: applied patch from Rob Richards to fix a problem with
  xmlTextWriterStartAttributeNS
Daniel
2005-02-21 13:49:46 +00:00
Daniel Veillard
d0cf7f6eea integrated in "make tests" added -q option, and more conditional features
* 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
2004-11-09 16:17:02 +00:00
Daniel Veillard
a521d28751 better handling of conditional features more testing on parser contexts
* 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
2004-11-09 14:59:59 +00:00
Daniel Veillard
d5cc0f7f51 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
2004-11-06 19:24:28 +00:00
Daniel Veillard
dd6d300896 more fixes and extending the tests coverage adding a type init interface
* 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
2004-11-03 14:20:29 +00:00
Daniel Veillard
e43cc574e4 more fixes and extending the tests coverage more hardeing of APIs skip
* 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
2004-11-03 11:50:29 +00:00
Daniel Veillard
03a53c34db 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
2004-10-26 16:06:51 +00:00
William M. Brack
47a3188400 changed char array initialisation to avoid a complaint from some
* xmlwriter.c: changed char array initialisation to avoid a
  complaint from some compiler(s) (bug 152308)
2004-09-11 16:09:09 +00:00
Daniel Veillard
62040be360 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
2004-05-17 03:17:26 +00:00
William M. Brack
87640d5f14 minor warning cleanup (no change to logic) fixed return value for internal
* 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)
2004-04-17 14:58:15 +00:00
Daniel Veillard
500a1de533 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
2004-03-22 15:22:58 +00:00
Daniel Veillard
ab69f366d0 applied update from Alfred Mickautsch and the added patch from Lucas
* xmlwriter.c include/libxml/xmlwriter.h: applied update
  from Alfred Mickautsch and the added patch from Lucas Brasilino
Daniel
2004-02-17 11:40:32 +00:00
William M. Brack
1ce3c802e2 fixed problem with return value of xmlTextWriterWriteIndent() (bug 133297)
* xmlwriter.c: fixed problem with return value of
  xmlTextWriterWriteIndent() (bug 133297)
2004-02-06 13:03:38 +00:00
William M. Brack
b907905369 enhanced output indenting (bug 133264)
* xmlwriter.c: enhanced output indenting (bug 133264)
2004-02-03 04:20:18 +00:00
William M. Brack
a9c612c3ee 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)
2004-02-01 10:04:05 +00:00
Daniel Veillard
4773df2a58 added io1.c an example ox xmlIO usage and io1.res test result, fixed a
* 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
2004-01-23 13:15:13 +00:00
Daniel Veillard
20c5e7878d applied patch from Alfred Mickautsch fixing a memory leak reported on the
* xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory
  leak reported on the list.
Daniel
2004-01-21 09:57:31 +00:00
William M. Brack
5d4cba413a fixed Bug130593 fixed compilation warning
* configure.in: fixed Bug130593
* xmlwriter.c: fixed compilation warning
2004-01-06 15:19:12 +00:00
Daniel Veillard
751c9ec657 applied patch from Lucas Brasilino fixing an indent problem. Daniel
* xmlwriter.c: applied patch from Lucas Brasilino fixing an indent
  problem.
Daniel
2004-01-05 13:05:58 +00:00
Daniel Veillard
2cca446b86 applied the patch from Lucas Brasilino to add indentation support to
* include/libxml/xmlwriter.h xmlwriter.c: applied the patch from
  Lucas Brasilino to add indentation support to xmlWriter
Daniel
2004-01-02 20:04:23 +00:00
Daniel Veillard
10c08c7d06 applied the patch to xmlTextWriterStartPI() suggested by Daniel Schulman
* xmlwriter.c: applied the patch to xmlTextWriterStartPI()
  suggested by Daniel Schulman in #128313
Daniel
2003-12-09 15:14:26 +00:00
Daniel Veillard
1e90661bb8 cleanup the make rebuild in doc, this include new directive to stop
* 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
2003-12-05 14:57:46 +00:00
Igor Zlatkovic
b23de5ad89 added IN_LIBXML macro 2003-11-27 18:36:46 +00:00
Daniel Veillard
1d91386313 applied patch from Robert Stepanek to start import os schemas support,
* 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
2003-11-21 00:28:39 +00:00
Daniel Veillard
5841f0e0a4 applied patch from Alfred Mickautsch, bugfixes and comments added his test
* 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
2003-11-20 11:59:09 +00:00
William M. Brack
b1d531659b minor enhancement to prevent comment with unreferenced variable. edited
* genChRanges.py, chvalid.c, include/libxml/chvalid.h: minor
  enhancement to prevent comment with unreferenced variable.
* threads.c xmlreader.c xmlwriter.c: edited some comments to
  improve auto-generation of documentation
* apibuild.py: minor change to an error message
2003-11-18 06:54:40 +00:00
Daniel Veillard
929714b707 applied patch from Alfred Mickautsch fixing #125180 Daniel
* xmlwriter.c: applied patch from Alfred Mickautsch fixing #125180
Daniel
2003-10-22 12:34:36 +00:00
Daniel Veillard
1d211e2273 added the xmlWriter module contributed by Alfred Mickautsch added room for
* configure.in xmlwriter.c Makefile.am include/libxml/xmlwriter.h
  include/libxml/Makefile.am include/libxml/xmlversion.h.in:
  added the xmlWriter module contributed by Alfred Mickautsch
* include/libxml/tree.h: added room for line and extra information
* xmlreader.c python/tests/reader6.py: bugfixing some problem some
  of them introduced in September
* win32/libxml2.def.src doc/libxml2-api.xml: regenerated the API
Daniel
2003-10-20 22:32:39 +00:00