9 years agoprepare release of 2.7.1 daniel LIBXML2.7.1
Daniel Veillard [Mon, 1 Sep 2008 14:50:19 +0000 (14:50 +0000)]
prepare release of 2.7.1 daniel

* doc/xml.html doc/news.html python/ NEWS:
  prepare release of 2.7.1

svn path=/trunk/; revision=3792

9 years agoapplied a couple of patches from Martin avoiding some leaks, fixinq QName
Daniel Veillard [Mon, 1 Sep 2008 13:38:22 +0000 (13:38 +0000)]
applied a couple of patches from Martin avoiding some leaks, fixinq QName

* schematron.c xpath.c: applied a couple of patches from Martin
  avoiding some leaks, fixinq QName checks in XPath, XPath debugging
  and schematron code cleanups.
* python/tests/ python/tests/ add the
  specific regression tests, just tweak it to avoid output by default

svn path=/trunk/; revision=3791

9 years agoBorland C fix from Moritz Both regenerate, workaround a problem for buffer
Daniel Veillard [Mon, 1 Sep 2008 13:08:57 +0000 (13:08 +0000)]
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
* tree.c: harden the code around buffer allocation schemes
* parser.c: restore the warning when namespace names are not absolute
* runxmlconf.c: continue regression tests if we get the expected
  number of errors
* 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

svn path=/trunk/; revision=3790

9 years agopreparing 2.7.0 release remove some testing traces remove some warnings LIBXML2.7.0
Daniel Veillard [Sat, 30 Aug 2008 15:01:04 +0000 (15:01 +0000)]
preparing 2.7.0 release remove some testing traces remove some warnings

*, doc/*: preparing 2.7.0 release
* tree.c: remove some testing traces
* parser.c xmlIO.c xmlschemas.c: remove some warnings

svn path=/trunk/; revision=3788

9 years agomake a new kind of buffer where shrinking and adding in head can avoid
Daniel Veillard [Sat, 30 Aug 2008 12:52:26 +0000 (12:52 +0000)]
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

svn path=/trunk/; revision=3787

9 years agoregenerated Daniel
Daniel Veillard [Sat, 30 Aug 2008 08:19:02 +0000 (08:19 +0000)]
regenerated Daniel

* doc/* testapi.c: regenerated

svn path=/trunk/; revision=3786

9 years agopatch from Robert Schwebel , allows to compile the example if configured
Daniel Veillard [Fri, 29 Aug 2008 19:58:23 +0000 (19:58 +0000)]
patch from Robert Schwebel , allows to compile the example if configured

* doc/examples/reader3.c: patch from  Robert Schwebel , allows to
  compile the example if configured without output support fixes
* add testrecurse to the make check tests
* HTMLparser.c: if the parser got a encoding argument it should be
  used over what the meta specifies, patch fixing #536346

svn path=/trunk/; revision=3785

9 years agoa couple more fixes patch from Andreas Färber to compile on Haiku
Daniel Veillard [Fri, 29 Aug 2008 12:43:40 +0000 (12:43 +0000)]
a couple more fixes patch from Andreas Färber to compile on Haiku

* parser.c: a couple more fixes
* nanohttp.c nanoftp.c: patch from Andreas Färber  to compile on Haiku
* doc/examples/*: regenerated

svn path=/trunk/; revision=3784

9 years agocompletely different fix for the recursion detection based on entity
Daniel Veillard [Thu, 28 Aug 2008 15:36:32 +0000 (15:36 +0000)]
completely different fix for the recursion detection based on entity

* parser.c include/libxml/parser.h: completely different fix for
  the recursion detection based on entity density, big cleanups
  in the entity parsing code too
* result/*.sax*: the parser should not ask for used defined versions
  of the predefined entities
* testrecurse.c: automatic test for entity recursion checks
* added testrecurse
* test/recurse/lol* test/recurse/good*: a first set of tests for
  the recursion

svn path=/trunk/; revision=3783

9 years agoa bit of cleanup and added checks based on the regression tests of the
Daniel Veillard [Wed, 27 Aug 2008 19:57:06 +0000 (19:57 +0000)]
a bit of cleanup and added checks based on the regression tests of the

* include/libxml/xmlerror.h parser.c: a bit of cleanup and
  added checks based on the regression tests of the xmlconf suite

svn path=/trunk/; revision=3782

9 years agobug in parsing RFC 3986 uris with port numbers Daniel
Daniel Veillard [Wed, 27 Aug 2008 17:23:41 +0000 (17:23 +0000)]
bug in parsing RFC 3986 uris with port numbers Daniel

* uri.c: bug in parsing RFC 3986 uris with port numbers

svn path=/trunk/; revision=3781

9 years agoadd an --with-coverage configure option and a 'make cov' target based on
Daniel Veillard [Wed, 27 Aug 2008 15:33:28 +0000 (15:33 +0000)]
add an --with-coverage configure option and a 'make cov' target based on

* add an --with-coverage configure option
  and a 'make cov' target based on gcc profiling and the lcov
  tool. Currently at 68.9% coverage out of 'make check' and
  runsuite executions.
* xmlreader.c: remove warnings due to C++ comments

svn path=/trunk/; revision=3780

9 years agocleanup entity pushing error handling based on a patch from Ashwin daniel
Daniel Veillard [Wed, 27 Aug 2008 13:02:01 +0000 (13:02 +0000)]
cleanup entity pushing error handling based on a patch from Ashwin daniel

* include/libxml/parserInternals.h parser.c: cleanup entity
  pushing error handling based on a patch from Ashwin

svn path=/trunk/; revision=3779

9 years agofix a small initialization problem raised by Ashwin increase testing
Daniel Veillard [Wed, 27 Aug 2008 11:45:41 +0000 (11:45 +0000)]
fix a small initialization problem raised by Ashwin increase testing

* threads.c: fix a small initialization problem raised by Ashwin
* testapi.c increase testing especially for document
  with an internal subset, and entities
* tree.c: fix a deallocation issue when unlinking entities from
  a document.
* valid.c: fix a missing entry point test not found previously.
* doc/*: regenerated the APIs, docs etc.

svn path=/trunk/; revision=3778

9 years agostrengthen some of the internal parser limits, add an XML_PARSE_HUGE
Daniel Veillard [Tue, 26 Aug 2008 13:05:34 +0000 (13:05 +0000)]
strengthen some of the internal parser limits, add an XML_PARSE_HUGE

* include/libxml/parser.h parser.c xmllint.c: strengthen some
  of the internal parser limits, add an XML_PARSE_HUGE option
  to bypass them all. More internal parser limits will still need
  to be added.

svn path=/trunk/; revision=3777

9 years agoadd the testchar to 'make check' Volker Grabsch pointed out a typo
Daniel Veillard [Tue, 26 Aug 2008 07:46:42 +0000 (07:46 +0000)]
add the testchar to 'make check' Volker Grabsch pointed out a typo

* add the testchar to 'make check'
* xmlschemas.c: Volker Grabsch pointed out a typo
* xmlregexp.c: production [19] from XML Schemas regexps were a
  mistake removed in version REC-xmlschema-2-20041028, Volker Grabsch
  provided a patch to remove it
* test/schemas/regexp-char-ref_0.xml test/schemas/regexp-char-ref_0.xsd
  test/schemas/regexp-char-ref_1.xsd result/schemas/regexp-char-ref_0_0
  result/schemas/regexp-char-ref_1_0: Volker Grabsch also provided
  regession tests for this

svn path=/trunk/; revision=3776

9 years agopatch based on Wieant Nielander contribution to add the option of not
Daniel Veillard [Tue, 26 Aug 2008 07:26:55 +0000 (07:26 +0000)]
patch based on Wieant Nielander contribution to add the option of not

* include/libxml/parser.h xinclude.c xmllint.c: patch based on
  Wieant Nielander contribution to add the option of not doing
  URI base fixup in XInclude

svn path=/trunk/; revision=3775

9 years agoapplied patch from Aswin to fix tree skipping fixed a comment and added a
Daniel Veillard [Mon, 25 Aug 2008 14:53:31 +0000 (14:53 +0000)]
applied patch from Aswin to fix tree skipping fixed a comment and added a

* xmlreader.c: applied patch from Aswin to fix tree skipping
* include/libxml/entities.h entities.c: fixed a comment and
  added a new xmlNewEntity() entry point
* runtest.c: be less verbose
* tree.c: space and tabs cleanups

svn path=/trunk/; revision=3774

9 years agorework the patch to avoid some ABI issue with people allocating entities
Daniel Veillard [Mon, 25 Aug 2008 08:57:48 +0000 (08:57 +0000)]
rework the patch to avoid some ABI issue with people allocating entities

* include/libxml/entities.h entities.c SAX2.c parser.c: rework
  the patch to avoid some ABI issue with people allocating
  entities structure directly

svn path=/trunk/; revision=3773

9 years agofix for CVE-2008-3281 Daniel
Daniel Veillard [Wed, 20 Aug 2008 17:04:30 +0000 (17:04 +0000)]
fix for CVE-2008-3281 Daniel

* include/libxml/parser.h include/libxml/entities.h entities.c
  parserInternals.c parser.c: fix for CVE-2008-3281

svn path=/trunk/; revision=3772

9 years agofix non GNUC builds.
Rob Richards [Sun, 10 Aug 2008 17:07:33 +0000 (17:07 +0000)]
fix non GNUC builds.

* dict.c: fix non GNUC builds.

svn path=/trunk/; revision=3771

9 years agoadding a check-valgrind target Daniel
Daniel Veillard [Fri, 8 Aug 2008 12:14:37 +0000 (12:14 +0000)]
adding a check-valgrind target Daniel

* adding a check-valgrind target

svn path=/trunk/; revision=3770

9 years agoadd the new test in 'make check' and update it to check subdictionaries
Daniel Veillard [Fri, 8 Aug 2008 12:03:22 +0000 (12:03 +0000)]
add the new test in 'make check' and update it to check subdictionaries

* testdict.c: add the new test in 'make check' and
  update it to check subdictionaries processing.

svn path=/trunk/; revision=3769

9 years agoadded a program to regression test the dictionary code improve the lookup
Daniel Veillard [Fri, 8 Aug 2008 10:09:19 +0000 (10:09 +0000)]
added a program to regression test the dictionary code improve the lookup

* testdict.c: added a program to regression test the dictionary code
* dict.c: improve the lookup efficiency by caching the key.

svn path=/trunk/; revision=3768

9 years agochased and found a couple of nasty issues Daniel
Daniel Veillard [Thu, 7 Aug 2008 16:33:49 +0000 (16:33 +0000)]
chased and found a couple of nasty issues Daniel

* dict.c: chased and found a couple of nasty issues

svn path=/trunk/; revision=3767

9 years agoBug 546629 – runtests doesn't pass on my mac Reviewed by William M.
CEST 2008 Sven Herzberg [Thu, 7 Aug 2008 13:52:30 +0000 (13:52 +0000)]
Bug 546629 – runtests doesn't pass on my mac Reviewed by William M.

Thu Aug  7 15:51:31 CEST 2008 Sven Herzberg <>

Bug 546629 – runtests doesn't pass on my mac
Reviewed by William M. Brack.

* runtest.c: use libpthread on Mac OS X as well

svn path=/trunk/; revision=3766

9 years agoallow [ and ] in fragment identifiers, 3986 disallow them but it's widely
Daniel Veillard [Wed, 6 Aug 2008 10:26:06 +0000 (10:26 +0000)]
allow [ and ] in fragment identifiers, 3986 disallow them but it's widely

* uri.c: allow [ and ] in fragment identifiers, 3986 disallow them
  but it's widely used for XPointer, and would break DocBook
  processing among others

svn path=/trunk/; revision=3765

9 years agochange the big key algorithm to work properly with QName too, fix a bug
Daniel Veillard [Wed, 6 Aug 2008 09:35:25 +0000 (09:35 +0000)]
change the big key algorithm to work properly with QName too, fix a bug

* dict.c: change the big key algorithm to work properly with QName
  too, fix a bug with dict size and sub dictionaries

svn path=/trunk/; revision=3764

9 years agorewrite the URI parser to update to rfc3986 (from 2396) removed the error
Daniel Veillard [Mon, 4 Aug 2008 15:29:44 +0000 (15:29 +0000)]
rewrite the URI parser to update to rfc3986 (from 2396) removed the error

* uri.c include/libxml/uri.h: rewrite the URI parser to update to
  rfc3986 (from 2396)
* test/errors/webdav.xml result/errors/webdav.xml*: removed the
  error test, 'DAV:' is a correct URI under 3986
* small cleanup in make check

svn path=/trunk/; revision=3763

9 years agomore progresses against the official regression tests small cleanup for
Daniel Veillard [Thu, 31 Jul 2008 19:54:59 +0000 (19:54 +0000)]
more progresses against the official regression tests small cleanup for

* runxmlconf.c: more progresses against the official regression tests
* runsuite.c: small cleanup for non-leak reports
* include/libxml/tree.h: parsing flags and other properties are
  now added to the document node, this is generally useful and
  allow to make Name and NmToken validations based on the parser
  flags, more specifically the 5th edition of XML or not
* HTMLparser.c tree.c: small side effects for the previous changes
* parser.c SAX2.c valid.c: the bulk of teh changes are here,
  the parser and validation behaviour can be affected, parsing
  flags need to be copied, lot of changes. Also fixing various
  validation problems in the regression tests.

svn path=/trunk/; revision=3762

9 years agoadded a skipped list, insert rmt-ns10-035 improve 'make check' clean up
Daniel Veillard [Thu, 31 Jul 2008 08:20:02 +0000 (08:20 +0000)]
added a skipped list, insert rmt-ns10-035 improve 'make check' clean up

* runxmlconf.c: added a skipped list, insert rmt-ns10-035
* improve 'make check'
* include/libxml/xmlerror.h parser.c: clean up namespace errors
  checking and reporting, errors when a document is labelled
  as UTF-16 while it is parsed as UTF-8 and no encoding was given
* result/errors/webdav.xml.*: some warnings are no recategorized
  as Namespace errors

svn path=/trunk/; revision=3761

9 years agoadd xmlMemDisplayLast to help debug incremental memory leaks, and some
Daniel Veillard [Wed, 30 Jul 2008 12:58:11 +0000 (12:58 +0000)]
add xmlMemDisplayLast to help debug incremental memory leaks, and some

* include/libxml/xmlmemory.h xmlmemory.c: add xmlMemDisplayLast to
  help debug incremental memory leaks, and some cleanups
* runxmlconf.c: use that new call and avoid ever touching the
  system catalog in the regression tests

svn path=/trunk/; revision=3760

9 years agoan XML-1.0 document can't load an 1.1 entity when using entities make sure
Daniel Veillard [Wed, 30 Jul 2008 12:35:40 +0000 (12:35 +0000)]
an XML-1.0 document can't load an 1.1 entity when using entities make sure

* parser.c include/libxml/xmlerror.h: an XML-1.0 document can't load
  an 1.1 entity
* runxmlconf.c: when using entities make sure we load them

svn path=/trunk/; revision=3759

9 years agofix a bug not detecting cross entity comments probably when comment
Daniel Veillard [Tue, 29 Jul 2008 16:44:59 +0000 (16:44 +0000)]
fix a bug not detecting cross entity comments probably when comment

* parser.c: fix a bug not detecting cross entity comments probably
  when comment parsing got optimized.
* add make check
* runxmlconf.c: fix the log file name

svn path=/trunk/; revision=3758

9 years agoadd a C program to run the W3C test suite, work in progress add a new
Daniel Veillard [Tue, 29 Jul 2008 16:12:31 +0000 (16:12 +0000)]
add a C program to run the W3C test suite, work in progress add a new

* runxmlconf.c add a C program to run the W3C test
  suite, work in progress
* xmllint.c: add a new option --oldxml10 to use the old parser
* parser.c: fix the XML_PARSE_OLD10 processing of the new option
  and a bug in version parsing

svn path=/trunk/; revision=3757

9 years agospace and tabs cleanup Daniel
Daniel Veillard [Tue, 29 Jul 2008 09:13:19 +0000 (09:13 +0000)]
space and tabs cleanup Daniel

* xpath.c: space and tabs cleanup

svn path=/trunk/; revision=3756

9 years agoimplement XML-1.0 5th edition, add parser option XML_PARSE_OLD10 to stick
Daniel Veillard [Tue, 29 Jul 2008 09:02:27 +0000 (09:02 +0000)]
implement XML-1.0 5th edition, add parser option XML_PARSE_OLD10 to stick

* include/libxml/parser.h include/libxml/xmlerror.h parser.c:
  implement XML-1.0 5th edition, add parser option XML_PARSE_OLD10
  to stick to old behaviour
* testapi.c modified slightly and regenerated
* add testchar

svn path=/trunk/; revision=3755

9 years agoadd a new regression test program for testing character ranges and UTF8
Daniel Veillard [Thu, 24 Jul 2008 15:05:38 +0000 (15:05 +0000)]
add a new regression test program for testing character ranges and UTF8

* testchar.c Makefile.tests README.tests: add a
  new regression test program for testing character ranges and
  UTF8 encoding/decoding

svn path=/trunk/; revision=3754

9 years agofix the build root Daniel
Daniel Veillard [Wed, 23 Jul 2008 13:35:50 +0000 (13:35 +0000)]
fix the build root Daniel

* fix the build root

svn path=/trunk/; revision=3753

9 years agofix problem with xmlStreamPop when pattern includes a "." element (see
William M. Brack [Thu, 17 Jul 2008 05:29:16 +0000 (05:29 +0000)]
fix problem with xmlStreamPop when pattern includes a "." element (see

* pattern.c: fix problem with xmlStreamPop when pattern includes a "." element (see discussion on libxslt list)

svn path=/trunk/; revision=3752

9 years agofix line number on text nodes, problem raised by Ralf Junker Daniel
Daniel Veillard [Mon, 7 Jul 2008 13:52:52 +0000 (13:52 +0000)]
fix line number on text nodes, problem raised by Ralf Junker Daniel

* SAX2.c: fix line number on text nodes, problem raised by Ralf Junker

svn path=/trunk/; revision=3751

9 years agofix crash with invalid whitespace facet
Rob Richards [Sun, 29 Jun 2008 15:04:41 +0000 (15:04 +0000)]
fix crash with invalid whitespace facet

* xmlschemas.c: fix crash with invalid whitespace facet

svn path=/trunk/; revision=3750

9 years agoSwitch off debugging, oops, Daniel
Daniel Veillard [Wed, 25 Jun 2008 04:11:24 +0000 (04:11 +0000)]
Switch off debugging, oops, Daniel

svn path=/trunk/; revision=3749

10 years agoadd a section in the FAQ about multithread and xmlCleanupParser Daniel
Daniel Veillard [Wed, 11 Jun 2008 08:14:22 +0000 (08:14 +0000)]
add a section in the FAQ about multithread and xmlCleanupParser Daniel

* doc/xml.html doc/FAQ.html: add a section in the FAQ about
  multithread and xmlCleanupParser

svn path=/trunk/; revision=3748

10 years agoapply a couple of fixes based on a Coverity report forwarded by Derrick
Daniel Veillard [Tue, 10 Jun 2008 14:56:11 +0000 (14:56 +0000)]
apply a couple of fixes based on a Coverity report forwarded by Derrick

* catalog.c: apply a couple of fixes based on a Coverity report
  forwarded by Derrick Price.
* VxWorks/README VxWorks/Makefile VxWorks/ instructions
  Makefile, and shell script to build on VxWorks 6.4+ provided by
  Jim Wert.

svn path=/trunk/; revision=3747

10 years agoapply patch from Martin fixing python whitespaces following previous
Daniel Veillard [Tue, 3 Jun 2008 16:08:54 +0000 (16:08 +0000)]
apply patch from Martin fixing python whitespaces following previous

* python/ python/ apply patch from Martin fixing
  python whitespaces
* NEWS: following previous commit rebuilt now in UTF-8

svn path=/trunk/; revision=3746

10 years agopatch from Hans de Goede to switch the file to UTF-8 switch to generate
Daniel Veillard [Mon, 2 Jun 2008 16:04:12 +0000 (16:04 +0000)]
patch from Hans de Goede to switch the file to UTF-8 switch to generate

* ChangeLog: patch from Hans de Goede to switch the file to UTF-8
* doc/news.xsl: switch to generate the NEWS file in UTF-8 instead of

svn path=/trunk/; revision=3745

10 years agoavoid a regexp crash, should fix #523738 Daniel
Daniel Veillard [Mon, 12 May 2008 13:15:35 +0000 (13:15 +0000)]
avoid a regexp crash, should fix #523738 Daniel

* xmlregexp.c: avoid a regexp crash, should fix #523738

svn path=/trunk/; revision=3744

10 years agofx compilation when configured without the reader should fix #513110
Daniel Veillard [Mon, 12 May 2008 12:58:46 +0000 (12:58 +0000)]
fx compilation when configured without the reader should fix #513110

* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h
  python/types.c python/libxml_wrap.h python/libxml.c: fx compilation
  when configured without the reader should fix #513110
* doc/*: regenerated

svn path=/trunk/; revision=3743

10 years agocheck for stdint.h and define types when using MSVC
Rob Richards [Sat, 3 May 2008 12:34:25 +0000 (12:34 +0000)]
check for stdint.h and define types when using MSVC

* dict.c: check for stdint.h and define types when using MSVC

svn path=/trunk/; revision=3742

10 years agoapplied patch from Ashwin to avoid a potential double-free Daniel
Daniel Veillard [Mon, 28 Apr 2008 18:07:29 +0000 (18:07 +0000)]
applied patch from Ashwin to avoid a potential double-free Daniel

* parserInternals.c: applied patch from Ashwin to avoid a potential

svn path=/trunk/; revision=3741

10 years agoapplied patch from Ashwin fixing a number of realloc problems improve
Daniel Veillard [Thu, 24 Apr 2008 11:58:41 +0000 (11:58 +0000)]
applied patch from Ashwin fixing a number of realloc problems improve

* uri.c: applied patch from Ashwin fixing a number of realloc problems
* HTMLparser.c: improve handling for misplaced html/head/body

svn path=/trunk/; revision=3740

10 years agoimprovement on the hashing of the dictionnary, with visible speed up as
Daniel Veillard [Tue, 22 Apr 2008 08:28:50 +0000 (08:28 +0000)]
improvement on the hashing of the dictionnary, with visible speed up as

* dict.c: improvement on the hashing of the dictionnary, with visible
  speed up as the number of strings in the hash increases, work from
  Stefan Behnel

svn path=/trunk/; revision=3739

10 years agoadded new function xmlSchemaValidCtxtGetParserCtxt based on Holger
Daniel Veillard [Fri, 11 Apr 2008 12:58:43 +0000 (12:58 +0000)]
added new function xmlSchemaValidCtxtGetParserCtxt based on Holger

* include/libxml/xmlschemas.h xmlschemas.c: added new function
  xmlSchemaValidCtxtGetParserCtxt based on Holger Kaelberer patch
* doc/ doc/*: regenerated the doc, chased why the new
  function didn't got any documentation, added more checking in the
* include/libxml/relaxng.h include/libxml/schematron.h
  include/libxml/xmlschemas.h include/libxml/c14n.h
  include/libxml/xmlregexp.h include/libxml/globals.h
  include/libxml/xmlreader.h threads.c xmlschemas.c: various changes
  and cleanups following the new reports

svn path=/trunk/; revision=3738

10 years agoextend the cleanup rule space cleanup Daniel
Daniel Veillard [Thu, 10 Apr 2008 08:09:25 +0000 (08:09 +0000)]
extend the cleanup rule space cleanup Daniel

* extend the cleanup rule
* xmlschemas.c: space cleanup

svn path=/trunk/; revision=3737

10 years agosupport older win32 platforms when building with newer versions of VS
Rob Richards [Wed, 9 Apr 2008 17:49:09 +0000 (17:49 +0000)]
support older win32 platforms when building with newer versions of VS

* include/wsockcompat.h: support older win32 platforms when building
  with newer versions of VS

svn path=/trunk/; revision=3736

10 years agopreparing release of 2.6.32 Daniel LIBXML2.6.32
Daniel Veillard [Tue, 8 Apr 2008 14:58:41 +0000 (14:58 +0000)]
preparing release of 2.6.32 Daniel

* NEWS doc/*: preparing release of 2.6.32

svn path=/trunk/; revision=3734

10 years agofix a bug introduced when fixing #438208 and reported by Ashwin fix an
Daniel Veillard [Tue, 8 Apr 2008 08:20:08 +0000 (08:20 +0000)]
fix a bug introduced when fixing #438208 and reported by Ashwin fix an

* tree.c: fix a bug introduced when fixing #438208 and reported by
* python/ fix an infinite loop bug

svn path=/trunk/; revision=3733

10 years agofix a link to XmlNodeType doc reported by Martijn Arts rebuilt Daniel
Daniel Veillard [Mon, 7 Apr 2008 12:46:48 +0000 (12:46 +0000)]
fix a link to XmlNodeType doc reported by Martijn Arts rebuilt Daniel

* xmlreader.c: fix a link to XmlNodeType doc reported by Martijn Arts
* docs/*: rebuilt

svn path=/trunk/; revision=3732

10 years agoimprove the *Recover* functions documentation Daniel
Daniel Veillard [Fri, 4 Apr 2008 16:10:51 +0000 (16:10 +0000)]
improve the *Recover* functions documentation Daniel

* parser.c: improve the *Recover* functions documentation

svn path=/trunk/; revision=3731

10 years agopatch from Mark Rowe fixing BOM or encoding detection in external parsed
Daniel Veillard [Thu, 3 Apr 2008 12:59:06 +0000 (12:59 +0000)]
patch from Mark Rowe fixing BOM or encoding detection in external parsed

* parser.c: patch from Mark Rowe fixing BOM or encoding detection
  in external parsed entities, should fix #440415

svn path=/trunk/; revision=3730

10 years agofix some problems with the *EatName functions when running out of memory
Daniel Veillard [Thu, 3 Apr 2008 11:17:21 +0000 (11:17 +0000)]
fix some problems with the *EatName functions when running out of memory

* tree.c: fix some problems with the *EatName functions when
  running out of memory raised by Eric Schrock , should fix #438208

svn path=/trunk/; revision=3729

10 years agohorror around the definition of the lexical values for decimal and derived
Daniel Veillard [Thu, 3 Apr 2008 10:43:52 +0000 (10:43 +0000)]
horror around the definition of the lexical values for decimal and derived

* xmlschemastypes.c: horror around the definition of the lexical
  values for decimal and derived types, fixing to reject empty
  values, should fix #503268

svn path=/trunk/; revision=3728

10 years agobuffer may not be large enough to convert to UCS4, patch from Christian
Daniel Veillard [Thu, 3 Apr 2008 09:46:34 +0000 (09:46 +0000)]
buffer may not be large enough to convert to UCS4, patch from Christian

* encoding.c: buffer may not be  large enough to convert to
  UCS4, patch from Christian Fruth , fixes #504015

svn path=/trunk/; revision=3727

10 years agoapparently it's okay to forget the semicolumn after entity refs in HTML,
Daniel Veillard [Thu, 3 Apr 2008 09:05:05 +0000 (09:05 +0000)]
apparently it's okay to forget the semicolumn after entity refs in HTML,

* HTMLparser.c: apparently it's okay to forget the semicolumn after
  entity refs in HTML, fixing char refs parsing accordingly based on
  T. Manske patch, this should fix #517653

svn path=/trunk/; revision=3726

10 years agoavoid a scary realloc() loop should fix #520383 Daniel
Daniel Veillard [Thu, 3 Apr 2008 07:31:25 +0000 (07:31 +0000)]
avoid a scary realloc() loop should fix #520383 Daniel

* error.c: avoid a scary realloc() loop should fix #520383

svn path=/trunk/; revision=3725

10 years agomore realloc problems pointed out by Ashwin Daniel
Daniel Veillard [Thu, 3 Apr 2008 06:24:04 +0000 (06:24 +0000)]
more realloc problems pointed out by Ashwin Daniel

* parser.c: more realloc problems pointed out by Ashwin

svn path=/trunk/; revision=3724

10 years agoapplied patch from Mike Hommey fixing distclean, fixes #520387 Daniel
Daniel Veillard [Thu, 3 Apr 2008 05:41:28 +0000 (05:41 +0000)]
applied patch from Mike Hommey fixing distclean, fixes #520387 Daniel

* xstc/ applied patch from Mike Hommey fixing distclean,
  fixes #520387

svn path=/trunk/; revision=3723

10 years agosmall doc improvement for xmlXPathContext from Jack Jansen, fixes #524759
Daniel Veillard [Thu, 3 Apr 2008 04:56:04 +0000 (04:56 +0000)]
small doc improvement for xmlXPathContext from Jack Jansen, fixes #524759

* include/libxml/xpath.h: small doc improvement for xmlXPathContext
  from Jack Jansen, fixes #524759
* doc/newapi.xsl doc/*: fixed a problem and regenerated the docs

svn path=/trunk/; revision=3722

10 years agotwo patches from Alvaro Herrera to avoid problem when running out of
Daniel Veillard [Tue, 1 Apr 2008 08:00:31 +0000 (08:00 +0000)]
two patches from Alvaro Herrera to avoid problem when running out of

* xpath.c: two patches from Alvaro Herrera to avoid problem when
  running out of memory in XPath evaluations.

svn path=/trunk/; revision=3721

10 years agolot of out of memory handling fixes from Ashwin work around a problem with
Daniel Veillard [Mon, 31 Mar 2008 09:26:00 +0000 (09:26 +0000)]
lot of out of memory handling fixes from Ashwin work around a problem with

* parser.c: lot of out of memory handling fixes from Ashwin
* elfgcchack.h doc/elfgcchack.xsl: work around a problem with xmlDllMain
* include/libxml/threads.h: indenting cleanups

svn path=/trunk/; revision=3720

10 years agotrying to clarify even more the xmlCleanupParser() use and the memory
Daniel Veillard [Mon, 31 Mar 2008 08:27:07 +0000 (08:27 +0000)]
trying to clarify even more the xmlCleanupParser() use and the memory

* parser.c docs/*: trying to clarify even more the xmlCleanupParser()
  use and the memory documentation

svn path=/trunk/; revision=3719

10 years agochanges based on Alex Khesin patch where xmlParseCharRef seems to not be
Daniel Veillard [Wed, 26 Mar 2008 17:41:38 +0000 (17:41 +0000)]
changes based on Alex Khesin patch where xmlParseCharRef seems to not be

* parser.c: changes based on  Alex Khesin patch where xmlParseCharRef
  seems to not be checked correctly, fixes #520198

svn path=/trunk/; revision=3718

10 years agopatch from Ashwin to avoid a problem of attribute redefinition in the DTD.
Daniel Veillard [Wed, 26 Mar 2008 14:06:44 +0000 (14:06 +0000)]
patch from Ashwin to avoid a problem of attribute redefinition in the DTD.

* parser.c: patch from Ashwin to avoid a problem of attribute
  redefinition in the DTD. Remove a warning too.

svn path=/trunk/; revision=3717

10 years agofix a problem in externalSubsetSplit with a patch from Ashwin Daniel
Daniel Veillard [Wed, 26 Mar 2008 13:39:31 +0000 (13:39 +0000)]
fix a problem in externalSubsetSplit with a patch from Ashwin Daniel

* xmlschemas.c: fix a problem in externalSubsetSplit with a patch
  from Ashwin

svn path=/trunk/; revision=3716

10 years agofix various attribute normalisation problems reported by Ashwin this
Daniel Veillard [Tue, 25 Mar 2008 16:52:41 +0000 (16:52 +0000)]
fix various attribute normalisation problems reported by Ashwin this

* parser.c: fix various attribute normalisation problems reported
  by Ashwin
* result/c14n/without-comments/example-4
  result/c14n/with-comments/example-4: this impacted the result of
  two c14n tests :-\
* test/att9 test/att10 test/att11 result//att9* result//att10*
  result//att11*: added 3 specific regression tests coming from the
  XML spec revision and from Ashwin

svn path=/trunk/; revision=3715

10 years agofix saving for file:///X:/ URI embedding Windows file paths should fix
Daniel Veillard [Tue, 25 Mar 2008 13:22:41 +0000 (13:22 +0000)]
fix saving for file:///X:/ URI embedding Windows file paths should fix

* uri.c: fix saving for file:///X:/ URI embedding Windows file paths
  should fix #524253

svn path=/trunk/; revision=3714

10 years agofix a problem reported by Ashwin for system parameter entities referenced
Daniel Veillard [Mon, 24 Mar 2008 20:45:21 +0000 (20:45 +0000)]
fix a problem reported by Ashwin for system parameter entities referenced

* parser.c: fix a problem reported by Ashwin for system parameter
  entities referenced from entities in external subset, add a
  specific loading routine.
* test/valid/dtds/external.ent test/valid/dtds/external2.ent
  test/valid/t11.xml result/valid/t11.xml*: added the test to
  the regression suite

svn path=/trunk/; revision=3713

10 years agofix an XML Schemas crash raised by Stefan Behnel when testing with W3C
Daniel Veillard [Mon, 24 Mar 2008 14:06:19 +0000 (14:06 +0000)]
fix an XML Schemas crash raised by Stefan Behnel when testing with W3C

* xmlschemas.c: fix an XML Schemas crash raised by Stefan Behnel
  when testing with W3C test suite

svn path=/trunk/; revision=3712

10 years agocheck some allocation with Ashwin patch Daniel
Daniel Veillard [Mon, 24 Mar 2008 11:12:55 +0000 (11:12 +0000)]
check some allocation with Ashwin patch Daniel

* threads.c: check some allocation with Ashwin patch

svn path=/trunk/; revision=3711

10 years agoupdate from Tycho Hilhorst, should fix #523378 Daniel
Daniel Veillard [Wed, 19 Mar 2008 15:43:00 +0000 (15:43 +0000)]
update from Tycho Hilhorst, should fix #523378 Daniel

* vms/ update from Tycho Hilhorst, should fix #523378

svn path=/trunk/; revision=3710

10 years agocheck some malloc returns with Ashwin patch, add error messages and
Daniel Veillard [Tue, 18 Mar 2008 08:24:25 +0000 (08:24 +0000)]
check some malloc returns with Ashwin patch, add error messages and

* threads.c: check some malloc returns with Ashwin patch, add
  error messages and reindent the module.

svn path=/trunk/; revision=3709

10 years agopatch from Ashwin removing duplicate tests Daniel
Daniel Veillard [Fri, 14 Mar 2008 14:29:40 +0000 (14:29 +0000)]
patch from Ashwin removing duplicate tests Daniel

* xmlreader.c: patch from Ashwin removing duplicate tests

svn path=/trunk/; revision=3708

10 years agoapplied patch from Tobias Minich to allow plugin schematron error
Daniel Veillard [Fri, 14 Mar 2008 12:46:42 +0000 (12:46 +0000)]
applied patch from Tobias Minich to allow plugin schematron error

* include/libxml/schematron.h include/libxml/xmlerror.h schematron.c:
  applied patch from Tobias Minich to allow plugin schematron error
  reporting in the normal error system, should fix #513998

svn path=/trunk/; revision=3707

10 years agopatch from Vasily Chekalkin fixes memory leaks, should fix 512647 Daniel
Daniel Veillard [Fri, 14 Mar 2008 10:54:00 +0000 (10:54 +0000)]
patch from Vasily Chekalkin fixes memory leaks, should fix 512647 Daniel

* parser.c xinclude.c: patch from Vasily Chekalkin fixes memory
  leaks, should fix 512647

svn path=/trunk/; revision=3706

10 years agofound a nasty bug in regexp automata build, reported by Ashwin and Bjorn
Daniel Veillard [Thu, 13 Mar 2008 07:27:24 +0000 (07:27 +0000)]
found a nasty bug in regexp automata build, reported by Ashwin and Bjorn

* xmlregexp.c: found a nasty bug in regexp automata build,
  reported by Ashwin and Bjorn Reese

svn path=/trunk/; revision=3705

10 years agopatch from Arnold Hendriks improving parsing of html within html bogus
Daniel Veillard [Wed, 12 Mar 2008 21:43:39 +0000 (21:43 +0000)]
patch from Arnold Hendriks improving parsing of html within html bogus

* HTMLparser.c: patch from Arnold Hendriks improving parsing of
  html within html bogus data, still not a complete fix though

svn path=/trunk/; revision=3704

10 years agofix a memory errro when using namespace nodes returned from XPath queries,
Daniel Veillard [Wed, 12 Mar 2008 09:32:04 +0000 (09:32 +0000)]
fix a memory errro when using namespace nodes returned from XPath queries,

* python/types.c: fix a memory errro when using namespace nodes
  returned from XPath queries, should fix #521699
* python/tests/ python/tests/ add a specific
  regression test for it

svn path=/trunk/; revision=3703

10 years agoadd ICONV_CONST define for win32 build to satisfy encoding.c change in rev
Rob Richards [Mon, 10 Mar 2008 15:26:27 +0000 (15:26 +0000)]
add ICONV_CONST define for win32 build to satisfy encoding.c change in rev

* include/win32config.h: add ICONV_CONST define for win32 build
  to satisfy encoding.c change in rev 3693

svn path=/trunk/; revision=3702

10 years agofix handling of empty CDATA nodes as reported and discussed around #514181
Daniel Veillard [Fri, 7 Mar 2008 16:50:21 +0000 (16:50 +0000)]
fix handling of empty CDATA nodes as reported and discussed around #514181

* xmlsave.c parser.c: fix handling of empty CDATA nodes as
  reported and discussed around #514181 and associated patches
* test/emptycdata.xml result/emptycdata.xml*
  result/noent/emptycdata.xml: added a specific test in the
  regression suite.

svn path=/trunk/; revision=3701

10 years agopoblem with encoding detection for UTF-16 reported by Ashwin and found by
Daniel Veillard [Thu, 6 Mar 2008 14:37:10 +0000 (14:37 +0000)]
poblem with encoding detection for UTF-16 reported by Ashwin and found by

* encoding.c: poblem with encoding detection for UTF-16 reported by
  Ashwin and found by Bill
* test/valid/dtds/utf16b.ent test/valid/dtds/utf16l.ent
  test/valid/UTF16Entity.xml result/valid/UTF16Entity.xml*: added
  the example to the regression tests

svn path=/trunk/; revision=3700

10 years agopatch from Alex Khesin fixing CDATA output after a text node. fixed the
Daniel Veillard [Tue, 4 Mar 2008 13:19:49 +0000 (13:19 +0000)]
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

svn path=/trunk/; revision=3699

10 years agopatch from Florent Guiliani to fix build on SCO OpenServer daniel
Daniel Veillard [Mon, 25 Feb 2008 15:44:43 +0000 (15:44 +0000)]
patch from Florent Guiliani to fix build on SCO OpenServer daniel

* testModule.c: patch from Florent Guiliani to fix build on
  SCO OpenServer

svn path=/trunk/; revision=3698

10 years agomade one of the changes suggested by Brian Krahmer allow to pass '--' on
Daniel Veillard [Thu, 21 Feb 2008 22:31:55 +0000 (22:31 +0000)]
made one of the changes suggested by Brian Krahmer allow to pass '--' on

* debugXML.c: made one of the changes suggested by Brian Krahmer
* testRegexp.c: allow to pass '--' on the command line to allow
  regexps starting with the character '-'

svn path=/trunk/; revision=3697

10 years agoapplied cleanup patches for cross compilation and MinGW from Roumen Petrov
Daniel Veillard [Tue, 19 Feb 2008 07:54:52 +0000 (07:54 +0000)]
applied cleanup patches for cross compilation and MinGW from Roumen Petrov

* python/ python/tests/ applied cleanup
  patches for cross compilation and MinGW from Roumen Petrov

svn path=/trunk/; revision=3696

10 years agofix output bug reported by Petr Pajas and analyzed by Bill Daniel
Daniel Veillard [Sat, 16 Feb 2008 10:08:14 +0000 (10:08 +0000)]
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

svn path=/trunk/; revision=3695

10 years agopatch from Julien Charbon to simplify the processing of xmlSetProp()
Daniel Veillard [Fri, 15 Feb 2008 08:33:21 +0000 (08:33 +0000)]
patch from Julien Charbon to simplify the processing of xmlSetProp()

* include/libxml/xmlerror.h tree.c: patch from Julien Charbon
  to simplify the processing of xmlSetProp()

svn path=/trunk/; revision=3694

10 years agopatch from Roumen Petrov to detect if iconv() needs a const for the second
Daniel Veillard [Fri, 15 Feb 2008 07:47:26 +0000 (07:47 +0000)]
patch from Roumen Petrov to detect if iconv() needs a const for the second

* encoding.c: patch from Roumen Petrov
  to detect if iconv() needs a const for the second parameter

svn path=/trunk/; revision=3693

10 years agoEOL cleanups from Florent Guiliani Daniel
Daniel Veillard [Fri, 15 Feb 2008 07:43:00 +0000 (07:43 +0000)]
EOL cleanups from Florent Guiliani Daniel

* macos/src/XMLTestPrefix2.h win32/Makefile.msvc: EOL cleanups
  from Florent Guiliani

svn path=/trunk/; revision=3692

10 years agoapplied patch from Alfred Mickautsch to flush the output at the end of
Daniel Veillard [Wed, 13 Feb 2008 10:17:41 +0000 (10:17 +0000)]
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.

svn path=/trunk/; revision=3691