1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-28 07:21:26 +03:00
Commit Graph

204 Commits

Author SHA1 Message Date
Daniel Veillard
bf8dae8a9c patch from Markus Henke, fix for recursive entities. Daniel
* tree.c: patch from Markus Henke, fix for recursive entities.
Daniel
2002-04-18 16:39:10 +00:00
Daniel Veillard
561b7f883e dohh I really didn't intended to commit this test version :-( Daniel
* HTMLparser.c error.c parser.c parserInternals.c tree.c xmlIO.c
  include/libxml/tree.h: dohh I really didn't intended to commit
  this test version :-(
Daniel
2002-03-20 21:55:57 +00:00
Daniel Veillard
e50f3b5d54 I wanted to see the real speed at the SAX interface after a little too
* testSAX.c: I wanted to see the real speed at the SAX interface
  after a little too many Ximianer started complaining about the
  parser speed.
  added a --quiet option:
  paphio:~/XML -> ls -l db100000.xml
  -rw-rw-r--    1 veillard www      20182040 Mar 20 10:30 db100000.xml
  paphio:~/XML -> time ./testSAX --quiet db100000.xml
  3200006 callbacks generated
  real	0m1.270s
  Which means 16MBytes/s and 3Mcallback/s
Daniel
2002-03-20 19:24:21 +00:00
Daniel Veillard
4b3a84ffcf adding "make valgrind" running the full regression tests (except python
* Makefile.am: adding "make valgrind" running the full regression
  tests (except python ones) under Valgrind (using valgrind -q
  which was kindly added by the author).
* valid.c: stupid bug pinpointed by Valgrind, the regression tests
  passes cleanly now except an obcure floating point initialization
  raised in log10() in one XPath regression test ???
* tree.c: edited some comments to close #75244
Daniel
2002-03-19 14:36:46 +00:00
Daniel Veillard
34ce8bece2 preparing 2.4.18 updated and rebuilt the web site implement the new
* configure.in: preparing 2.4.18
* doc/*: updated and rebuilt the web site
* *.c libxml.h: implement the new IN_LIBXML scheme discussed with
  the Windows and Cygwin maintainers.
* parser.c: humm, changed the way the SAX parser work when
  xmlSubstituteEntitiesDefault(1) is set, it will then
  do the entity registration and loading by itself in case the
  user provided SAX getEntity() returns NULL.
* testSAX.c: added --noent to test the behaviour.
Daniel
2002-03-18 19:37:11 +00:00
Daniel Veillard
5997aca8b8 humm, changed the way the SAX parser work when
* parser.c: humm, changed the way the SAX parser work when
  xmlSubstituteEntitiesDefault(1) is set, it will then
  do the entity registration and loading by itself in case the
  user provided SAX getEntity() returns NULL.
* testSAX.c: added --noent to test the behaviour.
Daniel
2002-03-18 18:36:20 +00:00
Daniel Veillard
9ff8817e67 Fixing #74186, made sure all boolean expressions get fully parenthesized,
* c14n.c: Fixing #74186, made sure all boolean expressions
  get fully parenthesized, ran indent on the output
* configure.in HTMLtree.c SAX.c c14n.c debugXML.c tree.c xpointer.c
  include/libxml/tree.h: also #74186 related, removed the
  --with-buffers option, and all the preprocessor conditional
  sections that were resulting from it.
Daniel
2002-03-11 09:15:32 +00:00
Daniel Veillard
a3db2e371f fixed a bug newly introduced and pointed by Uwe Fechner in xmlCopyProp()
* tree.c: fixed a bug newly introduced and pointed by Uwe Fechner
  in xmlCopyProp()
Daniel
2002-03-08 15:46:57 +00:00
Daniel Veillard
ef6c46f805 fixed xmlHasNsProp() bugs for defaulted from DTD attribs, added a specific
* tree.c python/tests/Makefile.am python/tests/attribs.py:
  fixed xmlHasNsProp() bugs for defaulted from DTD attribs,
  added a specific regression test
* python/generator.py: xmlHasNsProp() and xmlHasProp() shall
  not raise exceptions when failing to find the attribute.
Daniel
2002-03-07 22:21:56 +00:00
Daniel Veillard
f742d34179 fixed xmlReconciliateNs(), added a Python test/example for inter-document
* tree.c python/tests/Makefile.am python/tests/cutnpaste.py:
  fixed xmlReconciliateNs(), added a Python test/example for
  inter-document cut'n paste
* python/libxml.py: fixed node.doc on document nodes and added
  xpathEval() onto node objects
Daniel
2002-03-07 00:05:35 +00:00
Daniel Veillard
1e77438da7 fix bug #72490 added methods serialize() and saveTo() to all node
* tree.c: fix bug #72490
* python/libxml.c python/libxml.py: added methods serialize()
  and saveTo() to all node elements.
Daniel
2002-03-06 17:35:40 +00:00
Daniel Veillard
044fc6b747 fixing #61290 "namespace nodes have no parent" long standing divergence
* xpath.c: fixing #61290 "namespace nodes have no parent"
  long standing divergence from the XPath REC. NodeSets
  simply hold a copy of namespace nodes and those node ->next
  points to the parent (which may not be the node carrying the
  definition).
* include/libxml/xpath.h: flagged but didn't added a possible
  speedup
* DOCBparser.c HTMLparser.c: removed some warnings from push
  parser due to new state being added.
* tree.c: new fix from Boris Erdmann
* configure.in c14n.c include/libxml/c14n.h testC14N.c: added
  the XML Canonalization support from Aleksey Sanin
Daniel
2002-03-04 17:09:44 +00:00
Daniel Veillard
d4f41aacfc patch from Boris Erdmann fixing some namespace odities with xmlCopyNode()
* tree.c: patch from Boris Erdmann fixing some namespace odities
  with xmlCopyNode()
Daniel
2002-03-03 14:13:46 +00:00
Daniel Veillard
a6d0538776 Fixing #71342 serializing '\n' in attribute values added a specific test.
* tree.c: Fixing #71342 serializing '\n' in attribute values
* result/noent/att3 result/att3 test/att3: added a specific
  test.
Daniel
2002-02-13 13:07:41 +00:00
Daniel Veillard
0ba59239d9 Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.
* HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c
  globals.c parser.c threads.c tree.c valid.c xmlmemory.c
  xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h
  include/libxml/parserInternals.h include/libxml/tree.h
  include/libxml/xmlmemory.h include/libxml/xpathInternals.h:
  Tentatively fixed #69655 , make compiling with -Wredundant-decls
  clean.
* python/libxml.c: fixed a warning.
Daniel
2002-02-10 13:20:39 +00:00
Daniel Veillard
c5f05ada40 fix #68882, cleanup the XInclude copying of node, merge back IDs in the
* tree.c valid.c xinclude.c: fix #68882, cleanup the XInclude
  copying of node, merge back IDs in the target document.
* result/XInclude/docids.xml test/XInclude/docs/docids.xml
  test/XInclude/ents/ids.xml: test case
* result/VC/ElementValid4: output changed due to a typo fix
Daniel
2002-02-10 11:57:22 +00:00
Daniel Veillard
c575b997d8 Changed to the MIT Licence updated the doc accordingly preparing 2.4.14
* Copyright Makefile.am README configure.in libxml.spec.in:
  Changed to the MIT Licence
* doc/FAQ.html doc/catalog.html doc/intro.html doc/xml.html
  doc/xmlio.html: updated the doc accordingly
* include/libxml/xmlwin32version.h configure.in: preparing
  2.4.14 release
* python/generator.py python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt python/libxml_wrap.h python/types.c:
  fixed the const xmlChar * wrapper and generator, XPath extension
  functions now use the context as first argument
* python/tests/tstxpath.py python/tests/xpath.py
  python/tests/xpathext.py: Updated the tests accordingly
* tree.c: fixed bug #70067
Daniel
2002-02-08 13:28:40 +00:00
Daniel Veillard
36eea2d2ee hardened the addChild function added accessors needed for xmlNode, a bit
* tree.c: hardened the addChild function
* python/generator.py python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt python/libxml_wrap.h python/TODO:
  added accessors needed for xmlNode, a bit more testing and
  extension of interfaces
* python/tests/Makefile.am python/tests/build.py: added a test
  build from scratch/save/load/check
Daniel
2002-02-04 00:17:01 +00:00
Daniel Veillard
8ee9c8f6c4 applied patch from Anthony Jones to implement copy of DTD subtree too. Had
* entities.c tree.c include/libxml/entities.h: applied patch
  from Anthony Jones to implement copy of DTD subtree too. Had
  just to keep 2 function private which really ought to become
  public ones.
Daniel
2002-01-26 21:42:58 +00:00
Daniel Veillard
bd227ae9db more fixes from Petr Kozelka for attribute handling in the tree API to
* tree.c: more fixes from Petr Kozelka for attribute handling
  in the tree API to align the semantic with DOM.
Daniel
2002-01-24 16:05:41 +00:00
Daniel Veillard
3606581dcd another set of patches from Anthony Jones for copy operations cleanup and
* valid.c tree.c entities.c: another set of patches from
  Anthony Jones for copy operations cleanup and robustness
Daniel
2002-01-24 15:02:46 +00:00
Daniel Veillard
c169f8b485 apply an patch from Petr Kozelka for unlink and replace support of
* tree.c: apply an patch from Petr Kozelka for unlink and replace
  support of attribute nodes
Daniel
2002-01-22 21:40:13 +00:00
Daniel Veillard
9d06d300a5 Build a new version hopefully near complete and fully documented of the
* doc/libxml2-api.xml doc/parsedecl.py: Build a new version
  hopefully near complete and fully documented of the API in XML
* HTMLtree.c SAX.c debugXML.c error.c globals.c parser.c tree.c
 xmlIO.c xmlmemory.c include/libxml/catalog.h include/libxml/hash.h
 include/libxml/list.h include/libxml/parser.h include/libxml/tree.h
 include/libxml/parserInternals.h include/libxml/valid.hi
 include/libxml/xmlIO.h include/libxml/xmlerror.hi
 include/libxml/xmlmemory.h include/libxml/xmlversion.h.ini
 include/libxml/xpath.h include/libxml/xpathInternals.h:
  Cleaned up the doc comments a lot in the process, the interface
  coverage is now 100%
Daniel
2002-01-22 18:15:52 +00:00
Daniel Veillard
d2f23009b3 Adam Lounds pointed out a bug in xmlSearchNs() Daniel
* tree.c: Adam Lounds pointed out a bug in xmlSearchNs()
Daniel
2002-01-21 13:36:00 +00:00
Daniel Veillard
cfa0d81221 fixed the funxtion to set the xml: attributes added "setbase" to test it.
* tree.c: fixed the funxtion to set the xml: attributes
* debugXML.c: added "setbase" to test it.
Daniel
2002-01-17 08:46:58 +00:00
Daniel Veillard
2c748c612e update xmlNodeSetContent() and xmlNodeSetContentLen() to allow updating an
* tree.c: update xmlNodeSetContent() and xmlNodeSetContentLen()
  to allow updating an attribute content
Daniel
2002-01-16 15:37:50 +00:00
Daniel Veillard
e6a5519cdc some cleanup after an unsuccessful attempt at fixing #61290 :-( Daniel
* debugXML.c tree.c: some cleanup after an unsuccessful attempt
  at fixing #61290 :-(
Daniel
2002-01-14 17:11:53 +00:00
Daniel Veillard
fb25a51418 fixed xmlSaveFormatFileEnc() when encoding == NULL Fixes bug #67229 Daniel
* tree.c: fixed xmlSaveFormatFileEnc() when encoding == NULL
  Fixes bug #67229
Daniel
2002-01-13 20:32:08 +00:00
Daniel Veillard
acb2bdace3 trying to avoid troubles when a subtree is copied and coalesced in part
* tree.c: trying to avoid troubles when a subtree is copied
  and coalesced in part with the target tree. Should fix
  bug #67407
Daniel
2002-01-13 16:15:43 +00:00
Daniel Veillard
8107a22f96 integrated a couple of fixes and a new API function
* parser.c include/libxml/parserInternals.h tree.c: integrated
  a couple of fixes and a new API function xmlSetEntityReferenceFunc()
  from Keith Isdale and dedicated to xsldbg the XSLT debugger.
Daniel
2002-01-13 14:10:10 +00:00
Daniel Veillard
6f42c13647 Anthony Jones pointed out a problem in xmlStringGetNodeList() and provided
* tree.c: Anthony Jones  pointed out a problem in
  xmlStringGetNodeList() and provided a fix for it
Daniel
2002-01-06 23:05:13 +00:00
Daniel Veillard
cbaf399537 applied 42 documentation patches from Charlie Bozeman. Regenerated the
* *.c include/libxml/*.h doc/html/*: applied 42 documentation
  patches from Charlie Bozeman. Regenerated the HTML docs.
Daniel
2001-12-31 16:16:02 +00:00
Daniel Veillard
d16409207a applied documentation patches from Charlie Bozeman Daniel
* include/libxml/tree.h tree.c: applied documentation patches
  from Charlie Bozeman
Daniel
2001-12-17 15:30:10 +00:00
Daniel Veillard
29e4399d11 fix the xmlStrdup() used in the previous patch. added --dropdtd fixed
* valid.c: fix the xmlStrdup() used in the previous patch.
* valid.c: added --dropdtd
* tree.c: fixed xmlUnlinkNode so it also removes the references
  from the document if the node is a DTD
Daniel
2001-12-13 22:21:58 +00:00
Daniel Veillard
8faa783639 moved xmlGetLineNo() and xmlGetNodePath() into the main tree module, they
* tree.c debugXML.c include/libxml/tree.h include/libxml/debugXML.h:
  moved xmlGetLineNo() and xmlGetNodePath() into the main tree module,
  they are not really tied to debugging
Daniel
2001-11-26 15:58:08 +00:00
Daniel Veillard
4855c8c303 fixed a couple of problems in xmlSetProp() Daniel
* tree.c: fixed a couple of problems in xmlSetProp()
Daniel
2001-11-25 10:35:25 +00:00
Daniel Veillard
cd337f0bc6 some cleanups when chasing unappropriate stdout output. Daniel
* debugXML.c tree.c xmlIO.c xmlmemory.c: some cleanups when chasing
  unappropriate stdout output.
Daniel
2001-11-22 18:20:37 +00:00
Daniel Veillard
0ec986359a better comments for _private fields removed a problem when copying an
* include/libxml/tree.h: better comments for _private fields
* tree.c: removed a problem when copying an entity reference.
Daniel
2001-11-14 15:04:32 +00:00
CET 2001 Daniel Veillard
5a37bde34b more include cleanups, export cleanly one html output + format function.
Thu Nov  1 15:29:31 CET 2001 Daniel Veillard <daniel@veillard.com>

	* HTMLtree.c tree.c include/libxml/HTMLtree.h
	  include/libxml/tree.h include/libxml/xmlIO.h: more include
	  cleanups, export cleanly one html output + format function.

Thu Nov  1 14:12:12 CET 2001 Daniel Veillard <daniel@veillard.com>

	* parser.c: removed initGenericErrorDefaultFunc call from
	  xmlInitParser() since it could destroy previous calls to
	  xsltSetGenericErrorFunc() effects
Daniel
2001-11-01 14:31:22 +00:00
Daniel Veillard
3c01b1d81b - include/libxml/globals.h include/libxml/threads.h threads.c
testThreads.c: far more testing, cleaning up bugs
- *.c : make sure globals.h is always included.
Daniel
2001-10-17 15:58:35 +00:00
Daniel Veillard
d046356030 Applied the last patches from Gary, cleanup, activated threading all user
* include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h
  include/libxml/parserInternals.h include/libxml/tree.h
  include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c
  nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c
  testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c:
  Applied the last patches from Gary, cleanup, activated threading
  all user accessible global variables are now handled in globals.[ch]
  Still a bit rought but make tests passes with either
  --with-threads defined at configure time or not.
* Makefile.am example/Makefile.am: added globals.[ch] and threads
  linking options
Daniel
2001-10-13 09:15:48 +00:00
Daniel Veillard
78d1209708 integrating Keith Isdale patches for the XSLT debugger interfaces. Some
* include/libxml/debugXML.h debugXML.c tree.c: integrating
  Keith Isdale patches for the XSLT debugger interfaces. Some
  cleanup
Daniel
2001-10-11 09:12:24 +00:00
Daniel Veillard
60087f30f3 preparing 2.4.6 release updated and rebuilt the docs fixed a number of
* configure.in: preparing 2.4.6 release
* doc/xml.html doc/html/*: updated and rebuilt the docs
* include/libxml/*.h *.c: fixed a number of teh/the widht/width typos
Daniel
2001-10-10 09:45:09 +00:00
Daniel Veillard
20ee8c0310 applied fix from Mathias Hasselmann about a bug in URI parsing. fix bug
* uri.c: applied fix from Mathias Hasselmann about a bug in URI
  parsing.
* xpath.c: fix bug #61291 the default XML namespace node is
  missing from the namespace axis.
* tree.c: refuse to create namespaces nodes with prefix "xml"
Daniel
2001-10-05 09:18:14 +00:00
Daniel Veillard
9e1c72da8a Armin Sander pointed a possible text coalescing problem, completed his
* tree.c: Armin Sander pointed a possible text coalescing
  problem, completed his patch.
Daniel
2001-08-31 20:03:19 +00:00
Daniel Veillard
3ec4c618bf applied patch from Armin Sander to make some pointers const in
* tree.c: applied patch from Armin Sander to make some pointers
  const in xmlCopyNode()
Daniel
2001-08-28 20:39:49 +00:00
Daniel Veillard
1d0bfab330 fixed xmlCopyNode() for documents Daniel
* tree.c: fixed xmlCopyNode() for documents
Daniel
2001-07-26 11:49:41 +00:00
Daniel Veillard
f012a64d13 get rid of the readline and libhistory dependancies by default, release
* configure.in: get rid of the readline and libhistory
  dependancies by default, release 2.4.1 with IA64 fix
* nanohttp.c tree.c xmlIO.c include/libxml/nanohttp.h
  include/libxml/tree.h include/libxml/xmlIO.h: incorporated
  John Kroll fixes to allow saving to HTTP via PUT (or
  POST of needed).
* doc/html/*.html: regenerated the docs
Daniel
2001-07-23 19:10:52 +00:00
Daniel Veillard
5e2dace1ca Cleanup, cleanup .. removed libxml softlink for good cleanup to get 100%
Cleanup, cleanup ..
* configure.in Makefile.am: removed libxml softlink for good
* include/libxml/*.h *.c doc/Makefile.am: cleanup to get
  100% coverage by gtk-doc
Daniel
2001-07-18 19:30:27 +00:00
Daniel Veillard
220907319a cleanup of global variables, marking some const or private. Daniel
* include/libxml/parserInternals.h include/libxml/HTMLparser.h
  xmlIO.c tree.c parserInternals.c entities.c encoding.c
  HTMLparser.c: cleanup of global variables, marking some
  const or private.
Daniel
2001-07-16 00:06:07 +00:00