aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
Commit message (Collapse)AuthorAgeFilesLines
* added the xmlWriter module contributed by Alfred Mickautsch added room forDaniel Veillard2003-10-201-4/+9
| | | | | | | | | | | * configure.in xmlwriter.c Makefile.am include/libxml/xmlwriter.h include/libxml/Makefile.am include/libxml/xmlversion.h.in: added the xmlWriter module contributed by Alfred Mickautsch * include/libxml/tree.h: added room for line and extra information * xmlreader.c python/tests/reader6.py: bugfixing some problem some of them introduced in September * win32/libxml2.def.src doc/libxml2-api.xml: regenerated the API Daniel
* removing xmldwalk module since it got merged with the xmlreader. cleanupDaniel Veillard2003-10-203-0/+249
| | | | | | | | | | | | | | | * Makefile.am configure.in xmldwalk.c xmlreader.c include/libxml/Makefile.am include/libxml/xmldwalk.h include/libxml/xmlversion.h.in: removing xmldwalk module since it got merged with the xmlreader. * parser.c: cleanup * win32/libxml2.def.src python/libxml2class.txt doc/libxml2-api.xml: rebuilt the API * python/tests/Makefile.am python/tests/reader7.py python/tests/walker.py: adding regression testing for the new xmlreader APIs, new APIs for reader creation, including makeing reader "walker" operating on preparsed document trees. Daniel
* fixed to not send NULL to %s printing cleaning up some of the regressionDaniel Veillard2003-10-191-1/+1
| | | | | | | | | * HTMLparser.c: fixed to not send NULL to %s printing * python/tests/error.py result/HTML/doc3.htm.err result/HTML/test3.html.err result/HTML/wired.html.err result/valid/t8.xml.err result/valid/t8a.xml.err: cleaning up some of the regression tests error Daniel
* switched Relax-NG module to teh new error reporting. Better defaultDaniel Veillard2003-10-071-2/+2
| | | | | | | | | | * error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG module to teh new error reporting. Better default report, adds the element associated if found, context and node are included in the xmlError * python/tests/reader2.py: the error messages changed. * result/relaxng/*: error message changed too. Daniel
* more cleanup in make tests more work in the transition to the new errorDaniel Veillard2003-10-031-3/+3
| | | | | | | | | * Makefile.am: more cleanup in make tests * error.c valid.c parser.c include/libxml/xmlerror.h: more work in the transition to the new error reporting strategy. * python/tests/reader2.py result/VC/* result/valid/*: few changes in the strings generated by the validation output Daniel
* cleanup, creating a new legacy.c module, made sure make tests ran inDaniel Veillard2003-09-281-1/+1
| | | | | | | | | | | | | * Makefile.am: cleanup, creating a new legacy.c module, made sure make tests ran in reduced conditions * SAX.c SAX2.c configure.in entities.c globals.c parser.c parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in: increased the modularization, allow to configure out validation code and legacy code, added a configuration option --with-minimum compiling only the mandatory code which then shrink to 200KB. Daniel
* added a new API to split a QName without generating any memory allocationDaniel Veillard2003-08-041-11/+11
| | | | | | | | | | | * tree.c include/libxml/tree.h: added a new API to split a QName without generating any memory allocation * valid.c: fixed another problem with namespaces on element in mixed content case * python/tests/reader2.py: updated the testcase with Bjorn Reese fix to reader for unsignificant white space * parser.c HTMLparser.c: cleanup. Daniel
* patch from Stéphane Bidoul for setting up threads global defaults. thisDaniel Veillard2003-05-153-3/+100
| | | | | | | | | | | * build_glob.py global.data globals.c parser.c include/libxml/globals.h: patch from Stéphane Bidoul for setting up threads global defaults. * doc/libxml2-api.xml: this extends the API with new functions * python/tests/Makefile.am python/tests/reader2.py python/tests/thread2.py: integrated the associated testcase and fixed the error string used in reader2 Daniel
* a lot of performance work especially the speed of streaming through theDaniel Veillard2003-04-211-1/+1
| | | | | | | | | * globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c xmlreader.c include/libxml/parser.h: a lot of performance work especially the speed of streaming through the reader and push interface. Some thread related optimizations. Nearly doubled the speed of parsing through the reader. Daniel
* some cleanups extended the document to cover RelaxNG and tree operationsDaniel Veillard2003-04-173-0/+166
| | | | | | | | | | * 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
* Added the Expand() and Next() operation to work on subtrees within theDaniel Veillard2003-04-111-0/+48
| | | | | | | | | | * 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
* fixing #109227 providing more context in case of start/end tag mismatchDaniel Veillard2003-03-272-2/+2
| | | | | | | | * 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
* fixed bug #108801 reported by Malcolm Tredinnick about the DocType nodeDaniel Veillard2003-03-221-0/+25
| | | | | | | * 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
* fixed doc comment problems adding RelaxNG wrappers added a specific testDaniel Veillard2003-02-092-1/+50
| | | | | | | | | * 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
* patch from Stéphane Bidoul for better per context error message APIsDaniel Veillard2003-01-202-16/+17
| | | | | | | | | | * xmlreader.c python/drv_libxml2.py python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: patch from Stéphane Bidoul for better per context error message APIs * python/tests/ctxterror.py python/tests/readererr.py: update of the tests Daniel
* Forgot to add readererr.py, oops, DanielDaniel Veillard2003-01-171-0/+51
|
* applied a patch from Stéphane Bidoul to allow per XMLtextReader error andDaniel Veillard2003-01-161-1/+2
| | | | | | | | | | * xmlreader.c include/libxml/xmlreader.h python/generator.py python/libxml.c python/libxml.py win32/libxml2.def.src: applied a patch from Stéphane Bidoul to allow per XMLtextReader error and warning handling * python/tests/Makefile.am python/tests/readererr.py: adding the specific regression test Daniel
* applied and fixed a patch from Stephane Bibould to provide per parserDaniel Veillard2003-01-142-2/+57
| | | | | | | | | | * 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
* one more IsEmptyElement crazyness, that time in external parsed entitiesDaniel Veillard2003-01-091-0/+35
| | | | | | | * 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
* seriously changed the way data are pushed to the underlying parser, go byDaniel Veillard2003-01-053-25/+39
| | | | | | | | | | | | | * 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
* fixed a small problem related to order of files in dir, DanielDaniel Veillard2003-01-041-5/+6
|
* okay the DTD validation code on top of the XMLTextParser API should beDaniel Veillard2003-01-031-0/+39
| | | | | | * xmlreader.c python/tests/reader2py: okay the DTD validation code on top of the XMLTextParser API should be solid now. Daniel
* Fixing some more mess with validation and recursive entities while usingDaniel Veillard2003-01-031-0/+53
| | | | | | | * 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
* another couple of problem related to IsEmptyElement reported by StéphaneDaniel Veillard2003-01-021-0/+22
| | | | | | | * xmlreader.c python/tests/reader.py: another couple of problem related to IsEmptyElement reported by Stéphane Bidoul needed some fixes. Daniel
* fixed another couple of xmlreader bugs reported by Stéphane Bidoul andDaniel Veillard2003-01-011-4/+28
| | | | | | * xmlreader.c python/tests/reader.py: fixed another couple of xmlreader bugs reported by Stéphane Bidoul and added tests. Daniel
* fixed another validity checking in external parsed entities raised byDaniel Veillard2003-01-012-0/+55
| | | | | | | | * xmlreader.c python/tests/reader2.py: fixed another validity checking in external parsed entities raised by Stéphane Bidoul and added a specific regression test. * python/tests/reader3.py: cleanup Daniel
* fixed a problem with validation within entities pointed by StéphaneDaniel Veillard2002-12-311-0/+53
| | | | | | | * xmlreader.c python/tests/reader2.py: fixed a problem with validation within entities pointed by Stéphane Bidoul, augmented the tests to catch those. Daniel
* fixed another pair of problem pointed by Stéphane Bidoul: depth start at 0Daniel Veillard2002-12-301-16/+34
| | | | | | * xmlreader.c python/tests/reader.py: fixed another pair of problem pointed by Stéphane Bidoul: depth start at 0 and a parse problem. Daniel
* fixed another problem pointed by Stéphane Bidoul DanielDaniel Veillard2002-12-301-28/+43
| | | | | | * xmlreader.c python/tests/reader.py: fixed another problem pointed by Stéphane Bidoul Daniel
* fixed a limit case problem with "<a/>" DanielDaniel Veillard2002-12-301-0/+22
| | | | | | * xmlreader.c python/tests/reader.py: fixed a limit case problem with "<a/>" Daniel
* warn on xmlns:prefix="foo" fixed a couple of problem for namespaceDaniel Veillard2002-12-301-0/+36
| | | | | | | * SAX.c: warn on xmlns:prefix="foo" * xmlreader.c python/tests/reader.py: fixed a couple of problem for namespace attributes handling. Daniel
* fixed a bug pointed out by Stéphane Bidoul and integrated it into theDaniel Veillard2002-12-291-0/+30
| | | | | | * xmlreader.c python/tests/reader.py: fixed a bug pointed out by Stéphane Bidoul and integrated it into the tests Daniel
* extended the XmlTextReader API a bit, addding accessors for the currentDaniel Veillard2002-12-284-2/+114
| | | | | | | | | | | | * 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
* changed the generator to provide casing for the XmlTextReader similar toDaniel Veillard2002-12-282-69/+69
| | | | | | | | | * 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
* quiet down cvs somewhatJose Maria Celorio2002-12-281-0/+2
|
* final touch running DTD validation on the XmlTextReader added a specificDaniel Veillard2002-12-272-1/+56
| | | | | | | | * 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
* one really need to provide the base URI information when creating a readerDaniel Veillard2002-12-201-4/+4
| | | | | | | * 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
* added more methods of XmlTextReader. this increased the methods in theDaniel Veillard2002-12-151-0/+151
| | | | | | | | | * 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
* added the close and getattribute methods of XmlTextReader. added theDaniel Veillard2002-12-142-1/+96
| | | | | | | | | | | * 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
* trying to fix bug #98517 about building outside the source tree fixed theDaniel Veillard2002-11-151-2/+2
| | | | | | | * 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
* improving some documentation comments found and fixed a mem leak withDaniel Veillard2002-09-252-1/+34
| | | | | | | | | | | | | * 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
* updated the python bindings, added code for easier File I/O, and theDaniel Veillard2002-09-126-8/+109
| | | | | | | | | | | | | * 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
* fixed the test results, indenting behaviour changed slightly DanielDaniel Veillard2002-08-121-4/+4
| | | | | | * python/tests/serialize.py: fixed the test results, indenting behaviour changed slightly Daniel
* fixed a problem with the HTML parser pointed by Gary Benson sdding theDaniel Veillard2002-05-132-0/+65
| | | | | | | | * 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
* Added Igor Zlatkovic as official maintainer Albert Chin pointed thatDaniel Veillard2002-03-271-1/+1
| | | | | | | * 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
* Cleanup of the python Makefiles based on Jacob and James feedback, fixedDaniel Veillard2002-03-151-1/+1
| | | | | | | | | | * 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
* fixed xmlHasNsProp() bugs for defaulted from DTD attribs, added a specificDaniel Veillard2002-03-072-0/+35
| | | | | | | | | * 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
* fixed xmlReconciliateNs(), added a Python test/example for inter-documentDaniel Veillard2002-03-072-0/+49
| | | | | | | | | * 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
* fixed some htmlSetMetaEncoding() problems fixup and integrated tests forDaniel Veillard2002-03-062-0/+151
| | | | | | | * 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
* make sure SAX endDocument is always called as this could result in aDaniel Veillard2002-03-052-2/+22
| | | | | | | | | | | | * 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