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

100 Commits

Author SHA1 Message Date
Daniel Veillard
48ef4c98d2 fixed bug #108801 reported by Malcolm Tredinnick about the DocType node
* xmlreader.c: fixed bug #108801 reported by Malcolm Tredinnick
  about the DocType node not being reported sometimes.
* python/tests/reader.py: added to test to the regression checks
Daniel
2003-03-22 12:38:15 +00:00
Daniel Veillard
591b4be0fe fixed doc comment problems adding RelaxNG wrappers added a specific test
* xpath.c: fixed doc comment problems
* python/generator.py python/libxml_wrap.h python/types.c: adding
  RelaxNG wrappers
* python/tests/Makefile.am python/tests/relaxng.py: added a specific
  test of those early Python RelaxNG bindings
Daniel
2003-02-09 23:33:36 +00:00
Daniel Veillard
417be3ae08 patch from Stphane Bidoul for better per context error message APIs
* xmlreader.c python/drv_libxml2.py python/generator.py
  python/libxml.c python/libxml.py python/libxml_wrap.h
  python/types.c: patch from Stphane Bidoul for better per
  context error message APIs
* python/tests/ctxterror.py python/tests/readererr.py:
  update of the tests
Daniel
2003-01-20 21:26:34 +00:00
Daniel Veillard
1aaae65434 Forgot to add readererr.py, oops, Daniel 2003-01-17 10:48:04 +00:00
Daniel Veillard
26f70269c8 applied a patch from Stphane Bidoul to allow per XMLtextReader error and
* xmlreader.c include/libxml/xmlreader.h python/generator.py
  python/libxml.c python/libxml.py win32/libxml2.def.src: applied
  a patch from Stphane Bidoul to allow per XMLtextReader error
  and warning handling
* python/tests/Makefile.am python/tests/readererr.py: adding the
  specific regression test
Daniel
2003-01-16 22:45:08 +00:00
Daniel Veillard
e6227e0549 applied and fixed a patch from Stephane Bibould to provide per parser
* python/generator.py python/libxml.c python/libxml.py
  python/libxml_wrap.h python/types.c: applied and fixed a patch
  from Stephane Bibould to provide per parser error handlers at the
  Python level.
* python/tests/Makefile.am python/tests/ctxterror.py: added a
  regression test for it.
Daniel
2003-01-14 11:42:39 +00:00
Daniel Veillard
8f87244206 one more IsEmptyElement crazyness, that time in external parsed entities
* parser.c: one more IsEmptyElement crazyness, that time in
  external parsed entities if substitution is asked.
* python/tests/reader3.py: added a specific test.
Daniel
2003-01-09 23:19:02 +00:00
Daniel Veillard
067bae5ff8 seriously changed the way data are pushed to the underlying parser, go by
* xmlreader.c: seriously changed the way data are pushed to
  the underlying parser, go by block of 512 bytes instead of
  tryng to detect tag boundaries at that level. Changed the
  way empty element are detected and tagged.
* python/tests/reader.py python/tests/reader2.py
  python/tests/reader3.py: small changes mostly due to context
  reporting being different and DTD node being reported. Some
  errors previously undetected are now caught and fixed.
* doc/xmlreader.html: flagged last section as TODO
Daniel
2003-01-05 01:27:54 +00:00
Daniel Veillard
2bc13cacb0 fixed a small problem related to order of files in dir, Daniel 2003-01-04 19:06:55 +00:00
Daniel Veillard
a80ff6ec18 okay the DTD validation code on top of the XMLTextParser API should be
* xmlreader.c python/tests/reader2py: okay the DTD validation
  code on top of the XMLTextParser API should be solid now.
Daniel
2003-01-03 12:52:08 +00:00
Daniel Veillard
1fdfd115e5 Fixing some more mess with validation and recursive entities while using
* xmlreader.c python/tests/reader2py: Fixing some more mess
  with validation and recursive entities while using the
  reader interface, it's getting a bit messy...
Daniel
2003-01-03 01:18:43 +00:00
Daniel Veillard
dab8ea9b83 another couple of problem related to IsEmptyElement reported by Stphane
* xmlreader.c python/tests/reader.py: another couple of problem
  related to IsEmptyElement reported by Stphane Bidoul needed
  some fixes.
Daniel
2003-01-02 14:16:45 +00:00
Daniel Veillard
e3c036eedd fixed another couple of xmlreader bugs reported by Stphane Bidoul and
* xmlreader.c python/tests/reader.py: fixed another couple of
  xmlreader bugs reported by Stphane Bidoul and added tests.
Daniel
2003-01-01 15:11:05 +00:00
Daniel Veillard
9e395c289f fixed another validity checking in external parsed entities raised by
* xmlreader.c python/tests/reader2.py: fixed another validity
  checking in external parsed entities raised by Stphane Bidoul
  and added a specific regression test.
* python/tests/reader3.py: cleanup
Daniel
2003-01-01 14:50:44 +00:00
Daniel Veillard
d589614042 fixed a problem with validation within entities pointed by Stphane
* xmlreader.c python/tests/reader2.py: fixed a problem with
  validation within entities pointed by Stphane Bidoul, augmented
  the tests to catch those.
Daniel
2002-12-31 14:45:26 +00:00
Daniel Veillard
4d8db8a22c fixed another pair of problem pointed by Stphane Bidoul: depth start at 0
* xmlreader.c python/tests/reader.py: fixed another pair of problem
  pointed by Stphane Bidoul: depth start at 0 and a parse problem.
Daniel
2002-12-30 18:40:42 +00:00
Daniel Veillard
571b889b6b fixed another problem pointed by Stphane Bidoul Daniel
* xmlreader.c python/tests/reader.py: fixed another problem
  pointed by Stphane Bidoul
Daniel
2002-12-30 12:37:59 +00:00
Daniel Veillard
aaa105b590 fixed a limit case problem with "<a/>" Daniel
* xmlreader.c python/tests/reader.py: fixed a limit case problem
  with "<a/>"
Daniel
2002-12-30 11:42:17 +00:00
Daniel Veillard
ecaba49a72 warn on xmlns:prefix="foo" fixed a couple of problem for namespace
* SAX.c: warn on xmlns:prefix="foo"
* xmlreader.c python/tests/reader.py: fixed a couple of problem
  for namespace attributes handling.
Daniel
2002-12-30 10:55:29 +00:00
Daniel Veillard
29b3e285a7 fixed a bug pointed out by Stphane Bidoul and integrated it into the
* xmlreader.c python/tests/reader.py: fixed a bug pointed out
  by Stphane Bidoul and integrated it into the tests
Daniel
2002-12-29 11:14:41 +00:00
Daniel Veillard
e18fc185fa extended the XmlTextReader API a bit, addding accessors for the current
* xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml:
  extended the XmlTextReader API a bit, addding accessors for
  the current doc and node, and an entity substitution mode for
  the parser.
* python/libxml.py python/libxml2class.txt: related updates
* python/tests/Makefile.am python/tests/reader.py
  python/tests/reader2.py python/tests/reader3.py: updated a bit
  the old tests and added a new one to test the entities handling
Daniel
2002-12-28 22:56:33 +00:00
Daniel Veillard
aba976d825 changed the generator to provide casing for the XmlTextReader similar to
* python/generator.py python/libxml2class.txt
  python/tests/reader.py python/tests/reader2.py: changed the
  generator to provide casing for the XmlTextReader similar to
  C# so that examples and documentation are more directly transposable.
  Fixed the couple of tests in the suite.
Daniel
2002-12-28 21:14:18 +00:00
Jose Maria Celorio
d7046d171b quiet down cvs somewhat 2002-12-28 04:48:15 +00:00
Daniel Veillard
336fc7d3c9 final touch running DTD validation on the XmlTextReader added a specific
* valid.c xmlreader.c: final touch running DTD validation
  on the XmlTextReader
* python/tests/Makefile.am python/tests/reader2.py: added a
  specific run based on the examples from test/valid/*.xml
Daniel
2002-12-27 19:37:04 +00:00
Daniel Veillard
4258b9c8aa one really need to provide the base URI information when creating a reader
* doc/libxml2-api.xml python/tests/reader.py: one really need
  to provide the base URI information when creating a reader parser
  from an input stream. Updated the API and the example using it.
Daniel
2002-12-20 10:29:40 +00:00
Daniel Veillard
da46d2d31e added more methods of XmlTextReader. this increased the methods in the
* xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: added
  more methods of XmlTextReader.
* python/libxml2class.txt python/tests/reader.py: this increased the
  methods in the bndings, augmented the test to check those new
  functions.
Daniel
2002-12-15 23:36:49 +00:00
Daniel Veillard
0eb38c7259 added the close and getattribute methods of XmlTextReader. added the
* xmlreader.c doc/libxml2-api.xml: added the close and getattribute
  methods of XmlTextReader.
* python/generator.py python/libxml_wrap.h python/types.c
  python/libxml2class.txt: added the reader to the Python bindings
* python/tests/Makefile.am python/tests/reader.py: added a specific
  test for the Python bindings of the Reader APIs
* parser.c: small cleanup.
Daniel
2002-12-14 23:00:35 +00:00
Daniel Veillard
66651aa8a0 trying to fix bug #98517 about building outside the source tree fixed the
* Makefile.am python/Makefile.am python/tests/Makefile.am:
  trying to fix bug #98517 about building outside the source tree
* doc/xml.html doc/FAQ.html: fixed the link to libiconv #94585
Daniel
2002-11-15 11:21:43 +00:00
Daniel Veillard
bd9afb5290 improving some documentation comments found and fixed a mem leak with
* tree.c: improving some documentation comments
* xmlregexp.c: found and fixed a mem leak with python regression tests
* doc/*: rebuilt the doc and the API XML file including the
  xmlregexp.h xmlautomata.h and xmlunicode.h headers
* python/generator.py python/libxml2class.txt python/libxml_wrap.h
  python/types.c: added access to the XML Schemas regexps from
  python
* python/tests/Makefile.am python/tests/regexp.py: added a
  simple regexp bindings test
Daniel
2002-09-25 22:25:35 +00:00
Daniel Veillard
c6d4a933f0 updated the python bindings, added code for easier File I/O, and the
* python/generator.py python/libxml.c python/libxml.py
  python/libxml2-python-api.xml python/libxml2class.txt
  python/libxml_wrap.h python/types.c: updated the python
  bindings, added code for easier File I/O, and the ability to
  define a resolver from Python fixing bug #91635
* python/tests/Makefile.am python/tests/inbuf.py
  python/tests/outbuf.py python/tests/pushSAXhtml.py
  python/tests/resolver.py python/tests/serialize.py: updated
  and augmented the set of Python tests.
Daniel
2002-09-12 15:00:57 +00:00
Daniel Veillard
5f91b37818 fixed the test results, indenting behaviour changed slightly Daniel
* python/tests/serialize.py: fixed the test results, indenting
  behaviour changed slightly
Daniel
2002-08-12 12:13:01 +00:00
Daniel Veillard
3cd7240da4 fixed a problem with the HTML parser pointed by Gary Benson sdding the
* python/generator.py python/libxml2class.txt : fixed a problem
  with the HTML parser pointed by Gary Benson
* python/tests/Makefile.am python/tests/pushSAXhtml.py: sdding the
  example
Daniel
2002-05-13 10:33:30 +00:00
Daniel Veillard
5fc1f0893a Added Igor Zlatkovic as official maintainer Albert Chin pointed that
* AUTHORS HACKING: Added Igor Zlatkovic as official maintainer
* python/Makefile.am python/tests/Makefile.am: Albert Chin pointed
  that $(datadir) should be used for docs
Daniel
2002-03-27 09:05:40 +00:00
Daniel Veillard
d2379010b1 Cleanup of the python Makefiles based on Jacob and James feedback, fixed
* libxml.spec.in python/Makefile.am python/tests/Makefile.am
  python/generator.py python/libxml.c python/types.c: Cleanup
  of the python Makefiles based on Jacob and James feedback,
  fixed the spec file accordingly, fixed the number of warning
  that passing my pedantic CFLAGS was generating. Conclusion
  is that Python includes are real crap.
Daniel
2002-03-15 22:24:56 +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
4e0e297468 fixed some htmlSetMetaEncoding() problems fixup and integrated tests for
* HTMLtree.c: fixed some htmlSetMetaEncoding() problems
* python/libxml.c python/tests/Makefile.am python/tests/serialize.py:
  fixup and integrated tests for the serialization stuff
Daniel
2002-03-06 21:39:42 +00:00
Daniel Veillard
8d24cc1898 make sure SAX endDocument is always called as this could result in a
* parser.c: make sure SAX endDocument is always called as
  this could result in a Python memory leak otherwise (it's
  used to decrement ref-counting)
* python/generator.py python/libxml.c python/libxml.py
  python/libxml2-python-api.xml python/libxml2class.txt
  python/tests/error.py python/tests/xpath.py: implemented
  the suggestions made by Gary Benson and extended the tests
  to match it.
Daniel
2002-03-05 15:41:29 +00:00
Daniel Veillard
79426f2b46 added the possibility of returning nodesets from XPath extension functions
* python/types.c python/tests/Makefile.am python/tests/xpathret.py:
  added the possibility of returning nodesets from XPath extension
  functions written in Python
Daniel
2002-03-01 16:14:17 +00:00
Daniel Veillard
6361da0c25 Added wrapper for the xmlURIPtr type, provided accessors, fixed the
* python/generator.py python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt python/libxml_wrap.h python/types.c:
  Added wrapper for the xmlURIPtr type, provided accessors, fixed
  the accessor generator for strings
* python/tests/Makefile.am python/tests/tstURI.py: added a specific
  regression test.
Daniel
2002-02-23 10:10:33 +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
2a0cf740fb oops, Daniel 2002-02-07 16:40:20 +00:00
Daniel Veillard
7db3871bf5 cleanup always use stdout if output is NULL don't close filedescriptors
* Makefile.am: cleanup
* debugXML.c: always use stdout if output is NULL
* xmlIO.c: don't close filedescriptors passed to outputBuffers
* python/Makefile.am python/generator.py python/libxml2class.txt
  python/libxml_wrap.h python/types.c: augmented the number of bindings
  handling FILE * and XPath contexts
* python/tests/Makefile.am: avoid a stupid problem due to the
  use of TEST.
Daniel
2002-02-07 16:39:11 +00:00
Daniel Veillard
33caa0b830 started adding SAX interfaces added a basic SAX test Daniel
* python/TODO python/libxml.c: started adding SAX interfaces
* python/tests/Makefile.am python/tests/pushSAX.py: added a basic
  SAX test
Daniel
2002-02-04 14:07:26 +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
4e1b26cfeb change a small bit in the way valididy error messages get initialized
* parserInternals.c: change a small bit in the way valididy
  error messages get initialized
* python/TODO python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt python/libxml_wrap.h python/types.c:
  added some memory debugging to track leaks at the libxml2 level
* python/tests/*.py: changed all tests to check for leaks,
  there is just one left in XPath extension registrations.
daniel
2002-02-03 20:13:06 +00:00
Daniel Veillard
26f1dcc5bd more accessor classes for the parser context, allow to switch on and check
* python/TODO python/generator.py python/libxml2-python-api.xml
  python/libxml2class.txt: more accessor classes for the parser
  context, allow to switch on and check validity
* python/tests/Makefile.am python/tests/error.py
  python/tests/invalid.xml python/tests/valid.xml
  python/tests/validate.py: attded more test and and added error.py
  which I forgot to commit in the last step
Daniel
2002-02-03 16:53:19 +00:00
Daniel Veillard
3ce5257b29 cleanup added class for parser context, added first cut for push mode
* python/Makefile.am python/types.c: cleanup
* python/libxml.c python/libxml.py python/libxml_wrap.h
  python/generator.py python/libxml2-python-api.xml
  python/libxml2class.txt: added class for parser context, added
  first cut for push mode support. Added a framework to generate
  accessors functions.
* python/tests/Makefile.am python/tests/push.py: added a push
  test
Daniel
2002-02-03 15:08:05 +00:00
Daniel Veillard
5d81903b06 adding error redirections and preformat to a python handler cleanup made
* python/Makefile.am python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt: adding error redirections and preformat
  to a python handler
* python/tests/Makefile.am python/tests/*.py: cleanup made all
  tests self checking
Daniel
2002-02-02 21:49:17 +00:00
Daniel Veillard
253aa2c33b added more informations in the libxml2-python package including docs.
* configure.in libxml.spec.in python/Makefile.am python/TODO
  python/generator.py python/libxml2class.txt: added more informations
  in the libxml2-python package including docs. Slightly changed
  the class hierarchy
* python/tests/*: added basic regression tests infrastructure too
Daniel
2002-02-02 09:17:16 +00:00