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

237 Commits

Author SHA1 Message Date
Daniel Veillard
ac297930c2 some cleanups extended the document to cover RelaxNG and tree operations
* relaxng.c: some cleanups
* doc/xmlreader.html: extended the document to cover RelaxNG and
  tree operations
* python/tests/Makefile.am python/tests/reader[46].py: added some
  xmlReader example/regression tests
* result/relaxng/tutor*.err: updated the output of a number of tests
Daniel
2003-04-17 12:55:35 +00:00
Daniel Veillard
33300b49f0 augnemting the APIs, cleanups. cleanup bug #111005 added some missing
* include/libxml/relaxng.h relaxng.c include/libxml/xmlreader.h
  xmlreader.c: augnemting the APIs, cleanups.
* parser.c: cleanup bug #111005
* xmlIO.c: added some missing comments
Daniel
2003-04-17 09:09:19 +00:00
Daniel Veillard
c6cae7b690 Added the Expand() and Next() operation to work on subtrees within the
* xmlreader.c include/libxml/xmlreader.h: Added the Expand()
  and Next() operation to work on subtrees within the reader
  framework.
* doc/libxml2-api.xml python/libxml2class.txt: resulting updates
* python/tests/reader5.py: added an example for those new
  functions of the reader.
Daniel
2003-04-11 09:02:11 +00:00
Daniel Veillard
c2d4a93d4f preparing release 2.5.6 updated and rebuilt the docs Daniel
* configure.in NEWS: preparing release 2.5.6
* doc/*: updated and rebuilt the docs
Daniel
2003-04-01 11:13:05 +00:00
Daniel Veillard
6c5b2d3fff fixing #109227 providing more context in case of start/end tag mismatch
* parser.c: fixing #109227 providing more context in case of
  start/end tag mismatch
* python/tests/ctxterror.py python/tests/readererr.py: update the
  tests accordingly
Daniel
2003-03-27 14:55:52 +00:00
Daniel Veillard
e4fa293265 first part of the fix to performance bug #108905, adds
* xpath.c include/libxml/xpath.h: first part of the fix to
  performance bug #108905, adds xmlXPathOrderDocElems() providing
  document order for nodes.
* python/libxml.c: Python may require TRIO as Albert Chin pointed out
Daniel
2003-03-26 00:38:10 +00:00
Daniel Veillard
2032d294ac was missing "drv_libxml2.py" Daniel
* python/setup.py.in : was missing "drv_libxml2.py"
Daniel
2003-03-25 11:09:40 +00:00
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
17bed98106 preparing release 2.5.4 updated and rebuilt the docs removed warnings
* configure.in: preparing release 2.5.4
* doc/*: updated and rebuilt the docs
* relaxng.c: removed warnings
* result/relaxng/*: updated the results
Daniel
2003-02-24 20:11:43 +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
febcca40d4 more bug-hunting added --tree to dump the intermediate rng tree patch from
* relaxng.c: more bug-hunting
* testRelax.c include/libxml/relaxng.h: added --tree to dump the
  intermediate rng tree
* python/generator.py: patch from Stephane Bidoul to fix the generator
  on python < 2.2
Daniel
2003-02-16 15:44:18 +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
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
0e298ad23f fixing #104096 to compile without regexps Daniel
* configure.in valid.c xmlreader.c python/libxml_wrap.h
  python/types.c: fixing #104096 to compile without regexps
Daniel
2003-02-04 16:14:33 +00:00
Daniel Veillard
3b2e4e1c14 removed an unprotedted debug message Aleksi Suhonen put a guard against
* python/libxml.c: removed an unprotedted debug message Aleksi Suhonen
* parser.c: put a guard against infinite document depth, basically
  trying to avoid another kind of DoS attack.
* relaxng.c: some code w.r.t. nameClasses
Daniel
2003-02-03 08:52:58 +00:00
Daniel Veillard
ff12c494f7 seems there is no good reasons to not generate bindings for XPointer
* python/generator.py: seems there is no good reasons to
  not generate bindings for XPointer
Daniel
2003-01-23 16:42:55 +00:00
Daniel Veillard
540a31a361 applied a new patch from Stphane Bidoul for cleanups rebuilt the API
* xmlreader.c doc/apibuild.py: applied a new patch from
  Stphane Bidoul for cleanups
* doc/libxml2-api.xml: rebuilt the API description with
  new entry points
Daniel
2003-01-21 11:21:07 +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
e4a07e7b77 cleanup patch from Stphane Bidoul Daniel
* python/libxml.c: cleanup patch from Stphane Bidoul
Daniel
2003-01-14 14:40:25 +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
3b87b6b398 fixed a bug raised by Raymond Wiker, docSetRootElement() should not raise
* python/generator.py: fixed a bug raised by Raymond Wiker,
  docSetRootElement() should not raise an exception if the
  return is None
Daniel
2003-01-10 15:21:50 +00:00
Daniel Veillard
3e20a29213 fixed bug #102181 by applying the suggested change and fixing the
* python/libxml.py python/libxml.c python/libxml2-python-api.xml:
  fixed bug #102181 by applying the suggested change and fixing
  the generation/registration problem.
Daniel
2003-01-10 13:14:40 +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
e329fc2467 update from Stphane Bidoul: python 2.1 support and improved error handler
* python/drv_libxml2.py: update from Stphane Bidoul: python 2.1
  support and improved error handler registration
Daniel
2003-01-09 21:36:42 +00:00
Daniel Veillard
7b4b2f9d8f preparing 2.5.0 release only warn in pedantic mode about namespace name
* configure.in NEWS: preparing 2.5.0 release
* SAX.c: only warn in pedantic mode about namespace name
  brokeness
* globals.c: fix a doc generation problem
* uri.c: fix #101520
* doc/*: updated and rebuilt the doc for the release, includuding
  stylesheet update
* python/Makefile.am: fix a filename bug
Daniel
2003-01-06 13:11:20 +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
51a447a578 integrated the Python 2.2 optimizations from Hannu Krosing, while
* python/libxml.py: integrated the Python 2.2 optimizations
  from Hannu Krosing, while maintaining compatibility with
  1.5 and 2.1
Daniel
2003-01-04 19:42:46 +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
e59494fa54 a bit of cleanup small fix more work on the XmlTextReader tutorial a few
* xmllint.c: a bit of cleanup
* xmlreader.c: small fix
* doc/xmlreader.html: more work on the XmlTextReader tutorial
* python/libxml.py: a few fixes pointed out by Hannu Krosing
Daniel
2003-01-04 16:35:29 +00:00
Daniel Veillard
623a9eb2df patch from Stphane Bidoul to include drv_libxml2.py in setup.py Daniel
* python/setup.py.in: patch from Stphane Bidoul to include
  drv_libxml2.py in setup.py
Daniel
2003-01-04 12:47:20 +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
4f86020248 integrated drv_libxml2.py Python xml.sax driver from Stphane Bidoul based
* libxml.spec.in python/Makefile.am python/drv_libxml2.py:
  integrated drv_libxml2.py Python xml.sax driver from Stphane Bidoul
  based on the python XmlTextReader interface.
Daniel
2003-01-02 13:00:02 +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
dc85f28f66 modified the generator to allow keeping class references when creating new
* python/generator.py: modified the generator to allow keeping
  class references when creating new classes, needed to fix a bug
  pointed by Stphane Bidoul where the input buffer of the
  xmlTextReader instance gets destroyed if the python wrapper for
  the input is not referenced anymore.
Daniel
2002-12-31 11:18:37 +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
f25b4cab44 added a few predefined xmlTextReader parser configuration values. Daniel
* python/libxml.py: added a few predefined xmlTextReader parser
  configuration values.
Daniel
2002-12-27 15:18:35 +00:00
Daniel Veillard
0e9dafad00 trying to fix #102037 Daniel
* python/libxml_wrap.h: trying to fix #102037
Daniel
2002-12-27 11:58:25 +00:00
Daniel Veillard
0d132cffc1 patch from Stphane Bidoul for Python 2.1 Daniel
* python/libxml.c python/setup.py.in: patch from Stphane Bidoul
  for Python 2.1
Daniel
2002-12-23 14:43:32 +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
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
67df809c3a Vyacheslav Pindyura managed to trigger a bug in parseStartTag, fixing it.
* parser.c: Vyacheslav Pindyura managed to trigger a bug in
  parseStartTag, fixing it.
* test/att4 result/att4 result/noent/att4: adding the test
* xmlreader.c include/libxml/xmlreader.h doc/libxml2-api.xml: added
  more methods to XmlTextReader.
Daniel
2002-12-16 22:04:11 +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
c1eed320bd preparing release of 2.4.30 fixups to the api builder, gives enum values,
* configure.in: preparing release of 2.4.30
* doc/apibuild.py doc/libxml2-api.xml: fixups to the api builder,
  gives enum values, fix functype return type, put back fields in
  structs
* doc/*: updated the docs rebuilt
Daniel
2002-12-12 11:01:32 +00:00
Daniel Veillard
024b57019f patch from Mark Vadok about htmlNodeDumpOutput location. removed an
* HTMLtree.c include/libxml/HTMLtree.h: patch from Mark Vadok
  about htmlNodeDumpOutput location.
* xpath.c: removed an undefined function signature
* doc/apibuild.py doc/libxml2-api.xml: the script was exporting
  too many symbols in the API breaking the python bindings.
  Updated with the libxslt/libexslt changes.
Daniel
2002-12-12 00:15:55 +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
9d5ea17eb7 another patch from Stphane Bidoul for Python bindings on Windows small
* python/setup.py.in: another patch from Stphane Bidoul for
  Python bindings on Windows
* doc/parsedecl.py: small cleanup
Daniel
2002-11-27 08:02:06 +00:00
Daniel Veillard
faa35ff3cd Return the previous as opposed to the next node (I guess this is the
* python/libxml.c (libxml_prev): Return the previous as opposed to
the next node (I guess this is the result of some cut & paste programming:)
Daniel
2002-11-24 13:53:43 +00:00
Daniel Veillard
a1196ed414 trying to fix the Python bindings build on Windows (Stphane Bidoul)
* python/generator.py python/libxml.c python/setup.py.in: trying
  to fix the Python bindings build on Windows (Stphane Bidoul)
Daniel
2002-11-23 11:22:49 +00:00
Daniel Veillard
fee408f5eb final touch at closing #87235 </p> end tags need to be generated. this
* HTMLparser.c: final touch at closing #87235 </p> end tags
  need to be generated.
* result/HTML/cf_128.html result/HTML/test2.html result/HTML/test3.html:
  this change slightly the output of a few tests
* doc/*: regenerated
Daniel
2002-11-22 13:18:30 +00:00
Daniel Veillard
d076a20ea6 fixed #99082 for xi:include encoding="..." support on text includes. added
* xinclude.c parserInternals.c encoding.c: fixed #99082
  for xi:include encoding="..." support on text includes.
* result/XInclude/tstencoding.xml test/XInclude/docs/tstencoding.xml
  test/XInclude/ents/isolatin.txt : added a specific regression test
* python/generator.py python/libxml2class.txt: fixed the generator
  the new set of comments generated for doc/libxml2-api.xml were
  breaking the python generation.
Daniel
2002-11-20 13:28:31 +00:00
Daniel Veillard
a8c0adbc39 fixing bug #98792 , node may have no doc and dereferencing without
* python/libxml.c: fixing bug #98792 , node may have no doc
  and dereferencing without checking ain't good ...
Daniel
2002-11-17 22:37: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
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
c0ac069982 fixed bugs when passing result value tree to Python functions. Daniel
* python/types.c: fixed bugs when passing result value tree
  to Python functions.
Daniel
2002-10-20 21:31:50 +00:00
Daniel Veillard
d4cb1e8a5f fixed a stupid error breaking the python API Daniel
* python/generator.py python/libxml2class.txt: fixed a stupid error
  breaking the python API
Daniel
2002-09-26 09:34:23 +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
118aed78f3 fixed the data callback on transition functionality which was broken when
* xmlregexp.c: fixed the data callback on transition functionality
  which was broken when using the compact form
* result/schemas/*: updated the results, less verbose, all tests
  pass like before
* DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c
  testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c
  xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of
  annoying warnings
* xpath.c: try to provide better error report when possible
Daniel
2002-09-24 14:13:13 +00:00
Daniel Veillard
63b01c2da1 stupid bug found by mattam@netcourrier.com Daniel
* python/libxml_wrap.h: stupid bug found by mattam@netcourrier.com
Daniel
2002-09-17 19:25:28 +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
2206dbfabe applied patch from Christophe Merlet to reestablish DESTDIR Daniel
* python/Makefile.am: applied patch from Christophe Merlet to
  reestablish DESTDIR
Daniel
2002-09-05 08:09:37 +00:00
Daniel Veillard
42766c0eea possible mem leak patch from Jason Adams integrated xf:escape-uri() from
* xpath.c: possible mem leak patch from Jason Adams
* xpath.c: integrated xf:escape-uri() from Wesley Terpstra
  in the XQuery namespace
* configure.in: preparing 2.4.24
* doc/*.html: updated the web pages
* python/generator.py: closing bug #85258 by generating conditional
  compile check to avoid linking to routines not configured in.
Daniel
2002-08-22 20:52:17 +00:00
Daniel Veillard
08cccaa05a typo in target name resulted in libxml2.py to not be rebuilt. fixed
* python/Makefile.am: typo in target name resulted in libxml2.py
  to not be rebuilt. fixed DESTDIR similary to the libxslt one.
Daniel
2002-08-22 09:47:29 +00:00
Daniel Veillard
b6984efcc9 more AMD 64 induced changes from Frederic Crozat Daniel
* configure.in python/Makefile.am: more AMD 64 induced changes from
  Frederic Crozat
Daniel
2002-08-14 16:55:31 +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
6f46f6c5b8 Opening the interface xmlNewCharEncodingHandler as requested in #89415
* encoding.c include/libxml/encoding.h: Opening the interface
  xmlNewCharEncodingHandler as requested in #89415
* python/generator.py python/setup.py.in: applied cleanup
  patches from Marc-Andre Lemburg
* tree.c: fixing bug #89332 on a specific case of loosing
  the XML-1.0 namespace on xml:xxx attributes
Daniel
2002-08-01 12:22:24 +00:00
William M. Brack
61eaba5b75 fixed python/Makefile.am for bug 72012 2002-07-21 11:14:18 +00:00
Daniel Veillard
539638ba23 preparing 2.4.23 rebuilt the docs Daniel
* configure.in: preparing 2.4.23
* doc/*: rebuilt the docs
Daniel
2002-07-06 19:55:14 +00:00
Daniel Veillard
12171c4db1 Fixed serialize and saveTo comment, Daniel 2002-05-29 14:43:10 +00:00
Daniel Veillard
d5e22ef580 preparing 2.4.22 Daniel
* configure.in: preparing 2.4.22
Daniel
2002-05-27 21:17:57 +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
a7084cd57e release of 2.4.20 updated and rebuilt the docs Daniel
* configure.in: release of 2.4.20
* doc/*: updated and rebuilt the docs
Daniel
2002-04-15 17:12:47 +00:00
Daniel Veillard
f544f1935c patch from Cristian Gafton to build on Red Hat 6.2, should also fix #75779
* python/Makefile.am: patch from Cristian Gafton to build on
  Red Hat 6.2, should also fix #75779
Daniel
2002-04-15 12:56:56 +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
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
38bf6f0425 small fix to avoid potential problem due to ordering of freeing data
* xpath.c: small fix to avoid potential problem due to
  ordering of freeing data
* python/Makefile.am: people were complaining about
  the generated file in python dir not being built
Daniel
2002-03-16 22:03:31 +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
jacob berkman
9be6586ca9 remove LDADD and CFLAGS as this is broken usage, redundant, and gcc
2002-03-13  jacob berkman  <jacob@ximian.com>

	* python/Makefile.am: remove LDADD and CFLAGS as this is broken
	usage, redundant, and gcc specific
2002-03-14 02:15:56 +00:00
Daniel Veillard
a6d2e9ec00 config.py* was missing, Daniel 2002-03-09 10:22:50 +00:00
Daniel Veillard
fa49d87f92 fix to adapt varaiations in the bindings fixed to have the version of the
* check-xml-test-suite.py: fix to adapt varaiations in the
  bindings
* configure.in python/setup.py python/setup.py.in: fixed to
  have the version of the python scripts automatically updated
Daniel
2002-03-09 10:20:00 +00:00
Daniel Veillard
af43f63aaa preparing 2.4.17 release updated and rebuilt the docs fixed a comment
* configure.in: preparing 2.4.17 release
* doc/*: updated and rebuilt the docs
* xpath.c: fixed a comment
* python/libxml.c: fixed a possible reentrancy problem
Daniel
2002-03-08 15:05:20 +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
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
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
ba5e18a3fb applied patch fixing #73450 Daniel
* python/generator.py: applied patch fixing #73450
Daniel
2002-03-05 09:36:43 +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
a94ec6ff13 commiting some Python bindings work done while travelling Daniel
* python/*: commiting some Python bindings work done while travelling
Daniel
2002-03-01 13:00:53 +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
0fea6f45cd added the 'usual' setup.py to allow building a libxml2-python module based
* python/README python/generator.py python/libxml.c python/setup.py:
  added the 'usual' setup.py to allow building a libxml2-python
  module based on the same code. The initialization is however
  different the 2 .so files fo libxml2 and libxslt are identical and
  they entry point initialize both libraries. this is done to avoid
  some possible nasty problem since the Python don't merge the maps
  of all shared modules.
Daniel
2002-02-22 22:51:13 +00:00
Daniel Veillard
5f4b5999b4 preparing 2.4.16 updated and rebuilt the docs, rebuilt the API and web
* configure.in include/libxml/xmlwin32version.h: preparing 2.4.16
* doc/* python/libxml2class.txt: updated and rebuilt the docs,
  rebuilt the API and web site
* xpath.c: fixed #71978 portability bugs
Daniel
2002-02-20 10:22:49 +00:00
Daniel Veillard
bb7ddb3429 python script to run regression tests against the XML Test suite of
* check-xml-test-suite.py: python script to run regression tests
  against the XML Test suite of W3C/OASis
* SAX.c: fixed a validation bug
* parser.c: fixed 3 errors pointed by the test suite
* doc/buildDocBookCatalog: fixed a typo pointed by drake
* python/Makefile.am: fixed a dependendy
Daniel
2002-02-17 21:26:33 +00:00
Daniel Veillard
797a565a2f couple of bug fixes Daniel
* python/libxml.c: couple of bug fixes
Daniel
2002-02-12 13:46:21 +00:00
Daniel Veillard
01a6d4170c removed tabs and used spaces. Daniel
* python/*.py: removed tabs and used spaces.
Daniel
2002-02-11 18:42:20 +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
1c18e30b46 seems some version of automake didn't generate the dependancies right as
* python/Makefile.am: seems some version of automake didn't
  generate the dependancies right as Jacob found out. Add
  an extra dependancy rule.
Daniel
2002-02-09 22:16:40 +00:00
Daniel Veillard
5e5c2d0a93 Justin Fletcher found some parts of the code needing cleanup Fixed the
* parserInternals.c valid.c: Justin Fletcher found some parts
  of the code needing cleanup
* libxml.spec.in python/Makefile.am python/generator.py
  python/libxml.c python/libxml.py: Fixed the python Makefiles
  corrected a bug showing up on ia64, changed the name of the
  python internal module too
Daniel
2002-02-09 18:03:01 +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
70cab35abb cleanup the extension function lookup always compile the list Daniel
* python/TODO python/libxml.c: cleanup the extension function lookup
* xmlmemory.c include/libxml/xmlmemory.h: always compile the list
Daniel
2002-02-06 16:06:58 +00:00
Daniel Veillard
7a96efc0c9 do not install outside of prefix Daniel
* configure.in python/Makefile.am: do not install outside
  of prefix
Daniel
2002-02-05 16:34:33 +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
cfb0546244 fixed a small bug a bit of cleanup. Daniel
* python/Makefile.am python/TODO python/libxml.py: fixed a small
  bug a bit of cleanup.
Daniel
2002-02-02 23:18:22 +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
7fd7a94aa8 fixed a stupid bug when renaming a function Daniel
* python/libxml.c python/libxml.py: fixed a stupid bug when renaming
  a function
Daniel
2002-02-02 12:19:46 +00:00
Daniel Veillard
4cf998a639 Oops, missing an EXTRA_DIST, Daniel 2002-02-02 10:42:43 +00:00
Daniel Veillard
9589d4551e Progressing through the TODOs, class description output, extra XML API,
* libxml.spec.in python/Makefile.am python/TODO python/generator.py
  python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt: Progressing through the TODOs, class
  description output, extra XML API, RPM now builds the wrappers
  for all python installed versions
Daniel
2002-02-02 10:28: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
Daniel Veillard
a7340c830e more work, now able to extend the XPath interpreter with functions written
* python/Makefile.am python/generator.py python/libxml.c
  python/libxml.py: more work, now able to extend the
  XPath interpreter with functions written in python.
Daniel
2002-02-01 17:56:45 +00:00
Daniel Veillard
c3e39448e5 Jacob sent a patch to allow building from tarfile. Daniel
* python/Makefile.am: Jacob sent a patch to allow building from
  tarfile.
Daniel
2002-02-01 09:29:41 +00:00
Daniel Veillard
96c9af76e7 Fixed a couple more of python building problems, Daniel 2002-02-01 00:06:44 +00:00
Daniel Veillard
6327697c52 Force the generato to use the API description in ../doc, Daniel 2002-01-31 23:49:05 +00:00
Daniel Veillard
f1d0e6be57 inserted the python wrappers build, I hope this won't be too unportable
* python/Makefile.am python/libxml.c configure.in Makefile.am:
  inserted the python wrappers build, I hope this won't be too
  unportable
Daniel
2002-01-31 23:42:44 +00:00
Daniel Veillard
1971ee2698 minor optimization more work on the python bindings, they now support
* xpath.c: minor optimization
* python/generator.py python/libxml.c python/libxml.py
  python/libxml_wrap.h: more work on the python bindings,
  they now support XPath and there is no evident leak
Daniel
2002-01-31 20:29:19 +00:00
Daniel Veillard
36ed5290a2 more work on the python bindings generator. Daniel
* python/generator.py python/libxml.c python/libxml.py:
  more work on the python bindings generator.
Daniel
2002-01-30 23:49:06 +00:00
Daniel Veillard
96fe095d4b more work on the python bindings. Daniel
* python/generator.py python/libxml.c python/libxml_wrap.h:
  more work on the python bindings.
Daniel
2002-01-30 20:52:23 +00:00
Daniel Veillard
d2897fde00 commited early version of a python binding for private use only ATM Daniel
* python/generator.py python/libxml.c python/libxml.py
  python/libxml_wrap.h: commited early version of a python binding
  for private use only ATM
Daniel
2002-01-30 16:37:32 +00:00