aboutsummaryrefslogtreecommitdiffstats
path: root/parser.c
Commit message (Collapse)AuthorAgeFilesLines
* updated a bit made a comment more specific more work on the SchemasDaniel Veillard2002-04-221-2/+2
| | | | | | | | | * TODO: updated a bit * parser.c: made a comment more specific * xmlregexp.c xmlschemas.c xmlschemastypes.c: more work on the Schemas conformance. * test/schemas result/schemas: updated the test list Daniel
* patch from Markus Henke when an encoding ain't recognized DanielDaniel Veillard2002-04-091-0/+1
| | | | | * parser.c: patch from Markus Henke when an encoding ain't recognized Daniel
* dohh I really didn't intended to commit this test version :-( DanielDaniel Veillard2002-03-201-65/+49
| | | | | | | * 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
* I wanted to see the real speed at the SAX interface after a little tooDaniel Veillard2002-03-201-49/+65
| | | | | | | | | | | | | | * 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
* preparing 2.4.18 updated and rebuilt the web site implement the newDaniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * 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
* humm, changed the way the SAX parser work whenDaniel Veillard2002-03-181-0/+53
| | | | | | | | | * 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
* Wilfried Teiken provided a hackish but working way to get context reportedDaniel Veillard2002-03-181-2/+14
| | | | | | | * parser.c: Wilfried Teiken provided a hackish but working way to get context reported back on entities when parsing with SAX and without breaking the DOM build. Daniel
* make sure SAX endDocument is always called as this could result in aDaniel Veillard2002-03-051-12/+6
| | | | | | | | | | | | * 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
* fixed a push/encoding bug reported by Michael on librsvg DanielDaniel Veillard2002-02-201-2/+22
| | | | | | * parser.c: fixed a push/encoding bug reported by Michael on librsvg Daniel
* found and fixed a couple of allocation bugs DanielDaniel Veillard2002-02-201-22/+5
| | | | | * parser.c valid.c: found and fixed a couple of allocation bugs Daniel
* had to change 2 internal parsing API when processing document content toDaniel Veillard2002-02-191-17/+30
| | | | | | | | | | | | | | | | | * include/libxml/parserInternals.h parser.c: had to change 2 internal parsing API when processing document content to check the start and end of element content are defined in the same entity * valid.c include/libxml/valid.h: attribute normalization can generate a validity error added xmlValidCtxtNormalizeAttributeValue() with the context to report it. * SAX.c: fixed the last known bugs, crazy validation constraints when a document is standalone seems correctly handled. There is a couple of open issues left which need consideration especially PE93 on external unparsed entities and standalone status. Ran 1819 tests: 1817 suceeded, 2 failed and 0 generated an error in 8.26 s. The 2 tests left failing are actually in error. Cleanup done. Daniel
* more validation test fixups added duration info for the tests DanielDaniel Veillard2002-02-191-0/+1
| | | | | | * SAX.c parser.c valid.c: more validation test fixups * check-xml-test-suite.py: added duration info for the tests Daniel
* a couple of errors were reported but not saved back as such in the parsingDaniel Veillard2002-02-181-0/+2
| | | | | | | * parser.c valid.c: a couple of errors were reported but not saved back as such in the parsing context. Down to 1% failure rate Ran 1819 tests: 1801 suceeded, 18 failed and 0 generated an error Daniel
* isExtender was missing a char % are acceptable in the internal subset ifDaniel Veillard2002-02-181-2/+31
| | | | | | | * xmlInternald.c: isExtender was missing a char * parser.c include/libxml/parser.h: % are acceptable in the internal subset if within a PUBLIC ID Daniel
* fixed #71741 supid typo an a bug about encoding parsing stayed there forDaniel Veillard2002-02-171-1/+1
| | | | | | * parser.c: fixed #71741 supid typo an a bug about encoding parsing stayed there for years ! Daniel
* improved the behaviour a bit as well as the logs fixed a few more bugsDaniel Veillard2002-02-171-1/+4
| | | | | | | | * check-xml-test-suite.py: improved the behaviour a bit as well as the logs * parser.c valid.c SAX.c: fixed a few more bugs "Ran 1819 tests: 1778 suceeded, 41 failed, and 0 generated an error" Daniel
* python script to run regression tests against the XML Test suite ofDaniel Veillard2002-02-171-5/+30
| | | | | | | | | | * 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
* Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.Daniel Veillard2002-02-101-7/+0
| | | | | | | | | | | | * 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
* Build a new version hopefully near complete and fully documented of theDaniel Veillard2002-01-221-3/+9
| | | | | | | | | | | | | | | * 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
* Keith Isdale complained rightly that xmlInitParser() did not preserveDaniel Veillard2002-01-181-1/+4
| | | | | | * parser.c error.c: Keith Isdale complained rightly that xmlInitParser() did not preserve value set by xmlSetGenericErrorFunc Daniel
* integrated a couple of fixes and a new API functionDaniel Veillard2002-01-131-2/+51
| | | | | | | * 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
* Applied following patches from Robert Collins and make sure IN_LIBXML isDaniel Veillard2002-01-081-1/+1
| | | | | | | | | | | | | | | | | * libxml.h: Applied following patches from Robert Collins and make sure IN_LIBXML is defined when compiling it ------- * include/libxml/xmlversion.h.in (LIBXML_DLL_IMPORT): Use on Cygwin as well as Visual C. * parser.c (XML_DIR_SEP): Don't use '\\' for Cygwin. * parserInternals.c (XML_DIR_SEP): Don't use '\\' for Cygwin. * strio.c (PLATFORM_UNIX): Define for Cygwin. * triodef.h (TRIO_PLATFORM_UNIX): Define for Cygwin. * xmlIO.c (xmlFileOpen): Use unix behaviour for Cygwin. Use binary mode opens for Cygwin (xmlFileOpenW xmlParserGetDirectory xmlSysIDExists xmlNoNetExists). * xmllint.c: Don't include winsock2.h for Cygwin. Daniel
* Jirka Kosek pointer out a bug in xmlParseTextDecl() when the version infoDaniel Veillard2002-01-071-7/+9
| | | | | | * parser.c: Jirka Kosek pointer out a bug in xmlParseTextDecl() when the version info is not present. Daniel
* patch from Jack J Franklin to remove a bug in xmlCreatePushParserCtxt()Daniel Veillard2002-01-061-0/+8
| | | | | | | * parser.c: patch from Jack J Franklin to remove a bug in xmlCreatePushParserCtxt() when the initial buffer passed is large. Daniel
* Fixed a few other problems raised by Charlie Bozeman. fixed the outputDaniel Veillard2001-12-311-1/+1
| | | | | | | | * DOCBparser.c parser.c valid.c include/libxml/parserInternals.h include/libxml/xmlerror.h include/libxml/xpathInternals.h: Fixed a few other problems raised by Charlie Bozeman. * result/VC/ElementValid[5-7]: fixed the output Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-45/+46
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* integrated Eric Lavigne (sp???) contribution to build libxml2 on MacOSDaniel Veillard2001-12-051-1/+1
| | | | | | | * configure.in libxml.h parser.c testThreads.c macos/: integrated Eric Lavigne (sp???) contribution to build libxml2 on MacOS using CodeWarrior. Daniel
* Robin Berjon <robin@knowscape.com> found a case where non-wellformed XMLDaniel Veillard2001-11-291-12/+19
| | | | | | * parser.c: Robin Berjon <robin@knowscape.com> found a case where non-wellformed XML declaractions were not detected. Daniel
* more include cleanups, export cleanly one html output + format function.CET 2001 Daniel Veillard2001-11-011-1/+0
| | | | | | | | | | | | | | | 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
* apply fixes to close #63271 and avoid segfaults when the error routineDaniel Veillard2001-10-291-0/+2
| | | | | | | | | | * parser.c globals.c DOCBparser.c HTMLparser.c error.c: apply fixes to close #63271 and avoid segfaults when the error routine gets callbed before xmlInitParser() get called. * nanoftp.c error.c: Applied patches from Justin Fletcher correcting some xmlGenericError misuses. Daniel
* fixed an erroneous validation bug when PE refs occurs in external parsedDaniel Veillard2001-10-231-1/+2
| | | | | | | | | | | | * parser.c: fixed an erroneous validation bug when PE refs occurs in external parsed entities referenced from the internals subset * test/valid/index.xml test/valid/dtds/nitf-2-5.dtd test/valid/dtds/NewsMLv1.0.dtd result/valid/index.xml*: added the associated testcase, it's a nice one. * HTMLparser.c: generate the DTD node as HTML still ... * HTMLtree.c: fixed errors in Set/GetMetaEncoding Daniel
* fixed a very serious (looping) validation bug DanielDaniel Veillard2001-10-181-2/+44
| | | | | | * parser.c valid.c result/valid/rss.xml result/valid/rss.xml.err: fixed a very serious (looping) validation bug Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-1/+2
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* debugged and fixed initialization problems which were giving troubles onDaniel Veillard2001-10-141-0/+2
| | | | | | | * parser.c parserInternals.c threads.c: debugged and fixed initialization problems which were giving troubles on SMP boxes. Daniel
* Applied the last patches from Gary, cleanup, activated threading all userDaniel Veillard2001-10-131-7/+6
| | | | | | | | | | | | | | | * 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
* started integrating the non-controversial parts of Gary PenningtonDaniel Veillard2001-10-111-2/+2
| | | | | | | | | * HTMLtree.c catalog.c debugXML.c entities.c nanoftp.c parser.c valid.c xmlmemory.c xpath.c xpointer.c: started integrating the non-controversial parts of Gary Pennington multithread patches * catalog.c: corrected a small bug introduced Daniel
* adding xmlSAXParseFileWithData following Marco Stipek suggestion DanielDaniel Veillard2001-10-021-3/+31
| | | | | | * win32/dsp/libxml2.def.src include/libxml/parser.h parser.c: adding xmlSAXParseFileWithData following Marco Stipek suggestion Daniel
* Igor Zlatkovic patches fixed typos DanielDaniel Veillard2001-10-021-2/+2
| | | | | | * win32/dsp/libxml2.def.src: Igor Zlatkovic patches * DOCBparser.c HTMLparser.c parser.c: fixed typos Daniel
* fixed bug #59981 related to handling of '&' in attributes when entitiesDaniel Veillard2001-09-111-23/+37
| | | | | | * parser.c result/noent/wml.xml: fixed bug #59981 related to handling of '&' in attributes when entities are substitued Daniel
* John Fleck fixed typos in the options output fix ignorable white space SAXDaniel Veillard2001-09-091-1/+5
| | | | | | | | * xmllint.c: John Fleck fixed typos in the options output * parser.c SAX.c: fix ignorable white space SAX selection * entities.c: Steve Underwood found the possibility of an ininite loop in case of error. Daniel
* warn if version is not 1.0 but it's not strictly speaking an error afterDaniel Veillard2001-09-051-0/+8
| | | | | | * parser.c: warn if version is not 1.0 but it's not strictly speaking an error after analyzing the spec Daniel
* doc updates from Heiko Rupp 2 sanity checks from Heiko Rupp DanielDaniel Veillard2001-08-311-2/+3
| | | | | | * libxml.4 parser.c: doc updates from Heiko Rupp * parserInternals.c: 2 sanity checks from Heiko Rupp Daniel
* preparing for a 2.4.3 release even if it may not be ready yet redirectedDaniel Veillard2001-08-231-14/+1
| | | | | | | | | | | | * Makefile.am configure.in include/libxml/xmlwin32version.h: preparing for a 2.4.3 release even if it may not be ready yet * catalog.c parser.c xmlIO.c include/libxml/catalog.h: redirected all file parsing lookup to go through the entity resolver, add to add an API to bypass it (needed to load catalogs themselves), some cleanup on the catalog code too. * nanoftp.c: small cleanup * doc/catalog.html: small update Daniel
* added support and APIs needed for the catalog PI cleanup DanielDaniel Veillard2001-08-221-1/+79
| | | | | | | | * include/libxml/catalog.h include/libxml/parser.h include/libxml/xmlerror.h catalog.c parser.c parserInternals.c xmlIO.c: added support and APIs needed for the catalog PI * include/libxml/xmlIO.h: cleanup Daniel
* starts to look okay, really plugged the new framework, cleaned a lot ofDaniel Veillard2001-08-221-0/+3
| | | | | | | | | | | * catalog.c parser.c xmlIO.c xmlcatalog.c xmllint.c include/libxml/catalog.h: starts to look okay, really plugged the new framework, cleaned a lot of stuff, added some APIs, except the PI's support missing this should be mostly complete * result/catalogs/* test/catalogs/*: added new test, enriched the existing one with URN ID tests Daniel
* more work on the XML catalog support. small cleanup seems using list as aDaniel Veillard2001-08-211-15/+15
| | | | | | | | | | | | * Makefile.am catalog.c xmlcatalog.c include/libxml/catalog.h: more work on the XML catalog support. * parser.c include/libxml/parser.h: small cleanup seems using list as a public parameter name can give portability troubles * trionan.c trionan.h xpath.c include/libxml/trionan.h include/libxml/xpath.h include/libxml/Makefile.am: removed trionan from the libxml API, added xmlXPathIsInf and xmlXPathIsNaN wrappers Daniel
* small fix fixing bug #58539 reported by coolo, in entity substitution modeDaniel Veillard2001-08-131-5/+2
| | | | | | | | * SAX.c: small fix fixing bug #58539 reported by coolo, in entity substitution mode text at the end of the entity might be added due to text coalescing. * nanoftp.c parser.c: small cleanup Daniel
* applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSCDaniel Veillard2001-08-031-1/+1
| | | | | | | | | | * DOCBparser.c Makefile.am nanohttp.c parser.c testHTML.c testSAX.c xmlIO.c xmllint.c include/win32config.h include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in win32/README.MSDev win32/dsp/*: applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC Daniel
* when the internal subset uses a PE, then the included entity can useDaniel Veillard2001-07-311-133/+144
| | | | | | * parser.c: when the internal subset uses a PE, then the included entity can use conditional sections. daniel
* don't override existing encoding specified before startingDaniel Veillard2001-07-281-12/+14
| | | | | | * parser.c: don't override existing encoding specified before starting xmlParseDocument() Daniel