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

268 Commits

Author SHA1 Message Date
Daniel Veillard
e5984080ea 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
2003-08-19 22:21:13 +00:00
Daniel Veillard
6155d8aafa 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
2003-08-19 15:01:28 +00:00
Daniel Veillard
70bcb0ea24 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
2003-08-08 14:00:28 +00:00
Daniel Veillard
20aa0fb478 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
2003-08-04 19:43:15 +00:00
Daniel Veillard
39057f40d6 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
2003-08-04 01:33:43 +00:00
Daniel Veillard
8d73bcb50f 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
2003-08-04 01:06:15 +00:00
Daniel Veillard
a6874ca47c 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
2003-07-29 16:47:24 +00:00
Daniel Veillard
75eb1adc04 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
2003-07-07 14:42:44 +00:00
Daniel Veillard
e13261148b 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
2003-06-05 09:32:20 +00:00
Daniel Veillard
d72c7e339c 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
2003-05-12 21:55:03 +00:00
Daniel Veillard
a067e656fd fixed a problem with xmlUnlinkNode() for DTDs. Daniel
* tree.c: fixed a problem with xmlUnlinkNode() for DTDs.
Daniel
2003-05-01 08:03:46 +00:00
Daniel Veillard
a76fe5ca11 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
2003-04-24 16:06:47 +00:00
Daniel Veillard
a880b12475 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
2003-04-21 21:36:41 +00:00
Daniel Veillard
3c908dca47 added xmlMallocAtomic() to be used when allocating blocks which do not
* DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c
  nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c
  xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c
  include/libxml/globals.h include/libxml/xmlmemory.h: added
  xmlMallocAtomic() to be used when allocating blocks which
  do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet()
  to allow registering the full set of functions needed by
  a garbage collecting allocator like libgc, ref #109944
Daniel
2003-04-19 00:07:51 +00:00
Daniel Veillard
c00cda8c06 fixing bug #107129, removing excessive allocation and calls to *printf in
* tree.c valid.c xpath.c include/libxml/tree.h include/libxml/valid.h:
  fixing bug #107129, removing excessive allocation and calls
  to *printf in the code to build QName strings.
Daniel
2003-04-07 10:22:39 +00:00
Daniel Veillard
6560a42c7b two patches from James Bursa on the HTML parser and a typo reindenting,
* HTMLparser.c tree.c: two patches from James Bursa on the HTML
  parser and a typo
* xmlschemastypes.c: reindenting, fixing a memory access
  problem with dates.
Daniel
2003-03-27 21:25:38 +00:00
Daniel Veillard
9adc0469d4 some changes related to the new way of handling Result Value Tree, before
* tree.c xpath.c: some changes related to the new way of
  handling Result Value Tree, before 2.5.5
Daniel
2003-03-24 18:39:54 +00:00
Daniel Veillard
a1a9d04100 removed a warning more cleanup, added ENTITY and ENTITIES support
* tree.c: removed a warning
* xmlschemastypes.c: more cleanup, added ENTITY and ENTITIES
  support
* check-relaxng-test-suite.py check-xsddata-test-suite.py:
  cleanup/improvements of the regression tests batch
* test/relaxng/testsuite.xml: augmented libxml2 own testsuite
Daniel
2003-03-18 16:53:17 +00:00
Daniel Veillard
7b72ee5cfc fixed a node dump crash on attributes fixed an URI test bug and get better
* tree.c: fixed a node dump crash on attributes
* test/xsdtest/xsdtest.xml test/xsdtest/xsdtest.xsl: fixed
  an URI test bug and get better output.
Daniel
2003-02-27 23:24:53 +00:00
Daniel Veillard
3ebc7d43f7 fixed xmlSetProp and al. when the node passed is not an element. fixed
* tree.c: fixed xmlSetProp and al. when the node passed is not an
  element.
* relaxng.c: fixed bugs 7.3 (though not complete) and memory leaks
  found 373 test schemas: 369 success 4 failures
  found 529 test instances: 525 success 4 failures
* check-relaxng-test-suite.py: added memory debug reporting
Daniel
2003-02-24 17:17:58 +00:00
Daniel Veillard
c64b8e984c some warning removal on Igor's patch seems I messed up with #106788 fix
* uri.c parser.c: some warning removal on Igor's patch
* tree.c: seems I messed up with #106788 fix
* python/libxml.c: fixed some base problems when Python provides
  the resolver.
* relaxng.c: fixed the interleave algorithm
  found 373 test schemas: 364 success 9 failures
  found 529 test instances: 525 success 4 failures
  the resulting failures are bug in the algorithm from 7.3 and
  lack of support for params
Daniel
2003-02-24 11:47:13 +00:00
Daniel Veillard
0046c0fec2 another fix for nodeinfo in entities problem fixed bug #106788 from James
* parser.c: another fix for nodeinfo in entities problem
* tree.c entities.c: fixed bug #106788 from James Clark
  some spaces need to be serialized as character references.
Daniel
2003-02-23 13:52:30 +00:00
Daniel Veillard
d431074c46 float/double check bugfix exported a function for NMTOKEN validation add a
* xmlschemastypes.c: float/double check bugfix
* tree.c include/libxml/tree.h: exported a function for NMTOKEN
  validation
* xmlreader.c: add a TODO for Jody
* relaxng.c: bugfix bugfix bugfix
  found 373 test schemas: 300 success 73 failures
  found 529 test instances: 507 success 10 failures
* result/relaxng/*: updated the results
Daniel
2003-02-18 21:12:46 +00:00
Daniel Veillard
784b93587b applied a patch from Kjartan Maraas to fix some typos Daniel
* ChangeLog tree.c doc/libxml-doc.el doc/libxml2-api.xml: applied
  a patch from Kjartan Maraas to fix some typos
Daniel
2003-02-16 15:50:27 +00:00
Daniel Veillard
d2298791af more testing on the Relax-NG front, cleaning up the regression tests
* check-relaxng-test-suite.py relaxng.c: more testing on the
  Relax-NG front, cleaning up the regression tests failures
  current state and I forgot support for "mixed":
  found 373 test schemas: 280 success 93 failures
  found 529 test instances: 401 success 68 failures
* tree.c include/libxml/tree.h xmlschemastypes.c: finished and
  moved the Name, NCName and QName validation routine in tree.c
* uri.c: fixed handling of URI ending up with #, i.e. having
  an empty fragment ID.
* result/relaxng/*: updated the results
Daniel
2003-02-14 16:54:11 +00:00
Daniel Veillard
fd7ce5f7e1 trying to fix #104934 about some XHTML1 serialization issues. Daniel
* tree.c: trying to fix #104934 about some XHTML1 serialization
  issues.
Daniel
2003-02-10 16:12:39 +00:00
Daniel Veillard
6aa2f60373 fixing #105678 problem when dumping a namespace node. Daniel
* tree.c: fixing #105678 problem when dumping a namespace node.
Daniel
2003-02-10 00:01:56 +00:00
Daniel Veillard
71531f3345 comments cleanups use xmllint for doing the RelaxNG tests preparing 2.5.2
* HTMLparser.c tree.c xmlIO.c: comments cleanups
* Makefile.am: use xmllint for doing the RelaxNG tests
* configure.in: preparing 2.5.2 made schemas support default to
  on instead of off
* relaxng.c: removed the verbosity
* xmllint.c: added --relaxng option
* python/generator.py python/libxml_wrap.h: prepared the integration
  of the new RelaxNG module and schemas
* result/relaxng/*: less verbose output
Daniel
2003-02-05 13:19:53 +00:00
Daniel Veillard
e5b110b384 try to fix # 105049 a couple of changes and extensions updated a function
* HTMLparser.c: try to fix # 105049
* relaxng.c xmlschemastypes.c: a couple of changes and extensions
* tree.c: updated a function comment
Daniel
2003-02-04 14:43:39 +00:00
Daniel Veillard
7424eb6008 applied a documentation patch from Stefan Kost Daniel
* error.c parser.c tree.c: applied a documentation patch from Stefan Kost
Daniel
2003-01-24 14:14:52 +00:00
Daniel Veillard
814a76db87 minimized the memory allocated for GetContent and a bit of cleanup. Daniel
* tree.c: minimized the memory allocated for GetContent
  and a bit of cleanup.
Daniel
2003-01-23 18:24:20 +00:00
Daniel Veillard
4dbe77a84f fixed the streaming property of the reader, it was generating tree faster
* xmlreader.c: fixed the streaming property of the reader,
  it was generating tree faster than consuming it. Pointed out
  by Nate Myers
* tree.c: fixed a bug in xmlSaveFormatFileEnc if passed a NULL doc
Daniel
2003-01-14 00:17:42 +00:00
Daniel Veillard
5ecaf7f9a7 fixes #102920 about namespace handling in HTML output and section 16.2
* HTMLtree.c tree.c: fixes #102920 about namespace handling in
  HTML output and section 16.2 "HTML Output Method" of XSLT-1.0
* README: fixed a link
Daniel
2003-01-09 13:19:33 +00:00
Daniel Veillard
8a1b1853fc applied patch from Lukas Schroeder for register callbacks modified patch
* tree.c : applied patch from Lukas Schroeder for register callbacks
* valid.c: modified patch from Lukas Schroeder to test
  register callbacks with --chkregister
Daniel
2003-01-05 22:37:17 +00:00
Daniel Veillard
3c265e49aa backing out one change in the last patch which broke the regression tests
* tree.c: backing out one change in the last patch which broke the
  regression tests
Daniel
2003-01-01 21:06:49 +00:00
Daniel Veillard
5335dc52af applied an old patch from Lukas Schroeder to track node creation and
* global.data globals.c tree.c include/libxml/globals.h: applied
  an old patch from Lukas Schroeder to track node creation and
  destruction. Probably missing a lot of references at the moment
  and not usable reliably.
Daniel
2003-01-01 20:59:38 +00:00
Daniel Veillard
2d84a89478 Fixed a really nasty problem raised by a DocBook XSLT transform provided
* entities.c parser.c tree.c include/libxml/entities.h: Fixed
  a really nasty problem raised by a DocBook XSLT transform
  provided by Sebastian Bergmann
Daniel
2002-12-30 00:01:08 +00:00
Daniel Veillard
beb70bd39b more work on the xml reader interfaces. updated Igor's mail and the Web
* xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: more
  work on the xml reader interfaces.
* AUTHORS MAINTAINERS doc/* win32/*: updated Igor's mail and the
  Web page for the Windows binaries.
Daniel
2002-12-18 14:53:54 +00:00
Daniel Veillard
a9b66d00b5 new API building Python script, does the C parsing directly, generates a
* doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API
  building Python script, does the C parsing directly, generates
  a better API description including structure fieds defs and
  enums. Still a couple of bugs, but good enough for the python
  wrappers now.
* DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c
  valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c
  include/libxml/schemasInternals.h include/libxml/tree.h: more
  cleanup based on the python analysis script reports.
* libxml.spec.in: make sure the API XML description is part of the
  devel package.
Daniel
2002-12-11 14:23:49 +00:00
Daniel Veillard
01c13b5be2 code cleanup, especially the function comments. fixed a small bug when
* DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c
  nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c
  testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c
  xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c:
  code cleanup, especially the function comments.
* tree.c: fixed a small bug when freeing nodes which are XInclude ones.
Daniel
2002-12-10 15:19:08 +00:00
Daniel Veillard
e1ca50330b Adding a new set of APIs based on the C# TextXmlReader API but converted
* Makefile.am xmlreader.c include/libxml/Makefile.am
  include/libxml/xmlreader.h:  Adding a new set of APIs based on
  the C# TextXmlReader API but converted to C. Allow to parse
  in constant memory usage, far simpler to program and explain
  than the SAX like APIs, unfinished but working.
* testReader.c: test program
Daniel
2002-12-09 14:13:43 +00:00
Daniel Veillard
64b3528286 Chip turner indicated that XHTML1 serialization rule for style actually
* tree.c: Chip turner indicated that XHTML1 serialization
  rule for style actually break on both IE and Mozilla,
  try to avoid the rule if escaping ain't necessary
Daniel
2002-12-04 15:10:40 +00:00
Daniel Veillard
ebc4ca9456 refactored the XML dump of a node to a buffer API to reuse the generic
* tree.c include/libxml/tree.h: refactored the XML dump of a node
  to a buffer API to reuse the generic dump to an OutputIO layer,
  this reduces code, fixes xmlNodeDump() for XHTML, also made
  xmlNodeDump() now return the number of byte written.
Daniel
2002-11-27 11:43:05 +00:00
Daniel Veillard
d5c2f92df4 modified the existing APIs to handle XHTML1 serialization rules
* tree.c include/libxml/tree.h: modified the existing APIs
  to handle XHTML1 serialization rules automatically, also add
  xmlIsXHTML() to libxml2 API. Some tweaking to make sure
  libxslt serialization uses it when needed without changing
  the library API.
* test/xhtml1 result/noent/xhtml1 result/valid/xhtml1.xhtml
  result/xhtml1: added a new test specifically for xhtml1 output
  and updated the result of one XHTML1 test
Daniel
2002-11-21 14:10:52 +00:00
Daniel Veillard
8606bbbc0a fixed the initialization of the SAX structure which was breaking xsltproc
* parserInternals.c: fixed the initialization of the SAX structure
  which was breaking xsltproc
* xpath.c: patch from Petr Pajas for CDATA nodes
* tree.c: patch from Petr Pajas improving xmlGetNodePath()
* parser.c include/libxml/parser.h: patch from Peter Jones
  removing a leak in xmlSAXParseMemory() and adding the
  function xmlSAXParseMemoryWithData()
Daniel
2002-11-12 12:36:52 +00:00
Daniel Veillard
a70d62f296 make xmlFreeNode() handle attributes correctly. Daniel
* tree.c: make xmlFreeNode() handle attributes correctly.
Daniel
2002-11-07 14:18:03 +00:00
Daniel Veillard
ce66ce1ac1 applied patch from Brian Stafford to fix a bug in xmlReconciliateNs()
* tree.c: applied patch from Brian Stafford to fix a bug
  in xmlReconciliateNs()
Daniel
2002-10-28 19:01:59 +00:00
Daniel Veillard
7e3f1400ac applied patch from Christian Glahn to allow xmlNewChild() on document
* tree.c: applied patch from Christian Glahn to allow
  xmlNewChild() on document fragment nodes
Daniel
2002-10-28 18:52:57 +00:00
Daniel Veillard
e645e8c141 Applied the VMS update patch from Craig A. Berry update Daniel
* vms/build_libxml.com vms/config.vms vms/readme.vms
  include/libxml/parser.h include/libxml/parserInternals.h
  include/libxml/tree.h include/libxml/xmlIO.h
  HTMLparser.c catalog.c debugXML.c parser.c parserInternals.c
  tree.c triodef.h trionan.c uri.c xmlIO.c xpath.c:
  Applied the VMS update patch from Craig A. Berry
* doc/*.html: update
Daniel
2002-10-22 17:35:37 +00:00
Daniel Veillard
96c3a3bf5e investigating xmlNodeGetContent() on namespace nodes and removed a few
* tree.c: investigating xmlNodeGetContent() on namespace nodes
  and removed a few warnings
Daniel
2002-10-14 15:39:04 +00:00