summaryrefslogtreecommitdiff
path: root/parser.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed a problem in push mode when attribute contains unescaped '>'Daniel Veillard2004-02-181-1/+2
| | | | | | | * parser.c: fixed a problem in push mode when attribute contains unescaped '>' characters, fixes bug #134566 * test/att6 result//att6*: added the test to the regression suite Daniel
* fixed bug #132575 about finding the end of the internal subset in pushDaniel Veillard2004-02-121-0/+23
| | | | | | | | * parser.c: fixed bug #132575 about finding the end of the internal subset in push mode. * test/intsubset.xml result/intsubset.xml* result/noent/intsubset.xml: added the test to the regression suite Daniel
* remove the warning on the 2001 namespace remove some warnings whenDaniel Veillard2004-02-091-1/+1
| | | | | | | | * xinclude.c: remove the warning on the 2001 namespace * parser.c parserInternals.c xpath.c: remove some warnings when compiling with MSVC6 * nanohttp.c: applied a patch when using _WINSOCKAPI_ Daniel
* fixed bug #131745 raised by Shaun McCance with the suggested patch DanielDaniel Veillard2004-01-211-0/+1
| | | | | | * parser.c: fixed bug #131745 raised by Shaun McCance with the suggested patch Daniel
* some parser optimizations, xmllint --memory --timing --repeat --streamDaniel Veillard2004-01-121-17/+76
| | | | | | | * dict.c parser.c xmlstring.c: some parser optimizations, xmllint --memory --timing --repeat --stream ./db10000.xml went down from 16.5 secs to 15.5 secs. Daniel
* moved string and UTF8 routines out of parser.c and encoding.c into a newWilliam M. Brack2004-01-061-543/+0
| | | | | | | | | | | | | | | | | | | | | * encoding.c, parser.c, xmlstring.c, Makefile.am, include/libxml/Makefile.am, include/libxml/catalog.c, include/libxml/chvalid.h, include/libxml/encoding.h, include/libxml/parser.h, include/libxml/relaxng.h, include/libxml/tree.h, include/libxml/xmlwriter.h, include/libxml/xmlstring.h: moved string and UTF8 routines out of parser.c and encoding.c into a new module xmlstring.c with include file include/libxml/xmlstring.h mostly using patches from Reid Spencer. Since xmlChar now defined in xmlstring.h, several include files needed to have a #include added for safety. * doc/apibuild.py: added some additional sorting for various references displayed in the APIxxx.html files. Rebuilt the docs, and also added new file for xmlstring module. * configure.in: small addition to help my testing; no effect on normal usage. * doc/search.php: added $_GET[query] so that persistent globals can be disabled (for recent versions of PHP)
* added a routine xmlStrncatNew to create a new string from 2 frags. addedWilliam M. Brack2004-01-041-0/+33
| | | | | | | * parser.c, include/libxml/parser.h: added a routine xmlStrncatNew to create a new string from 2 frags. * tree.c: added code to check if node content is from dictionary before trying to change or concatenate.
* Fixed memory leak reported by Dave Beckett Removed spurious commentWilliam M. Brack2003-12-301-0/+1
| | | | | | | | | | * parser.c, xmlmemory.c, include/libxml/xmlmemory.h: Fixed memory leak reported by Dave Beckett * xmlschemas.c: Removed spurious comment reported on the mailing list * xinclude.c, xpath.c, xpointer.c, libxml/include/xpointer.h: Further work on Bug 129967 concerning xpointer range handling and range-to function; much better, but still not complete
* change xmlReadFd() xmlCtxtReadFd() xmlReaderNewFd() xmlReaderForFd(),Daniel Veillard2003-12-221-0/+6
| | | | | | | * parser.c xmlreader.c: change xmlReadFd() xmlCtxtReadFd() xmlReaderNewFd() xmlReaderForFd(), change those to not close the file descriptor. Updated the comment, should close #129683 Daniel
* fixed bug #129489, propagation of parsing flags in entities. improved theDaniel Veillard2003-12-211-13/+15
| | | | | | | * parser.c: fixed bug #129489, propagation of parsing flags in entities. * parser.c xmlreader.c: improved the comments of parsing options Daniel
* tried to fix the problems reported in bug #126735 fixed again some problemDaniel Veillard2003-12-081-1/+1
| | | | | | | | | | * python/libxml.py: tried to fix the problems reported in bug #126735 * xpath.c SAX2.c error.c parser.c valid.c include/libxml/xmlerror.h: fixed again some problem trying to use the structured error handlers, c.f. bug #126735 * result/VC/ElementValid: tiny change due to the fix Daniel
* attempt to fix #126211 ... DanielDaniel Veillard2003-12-071-1/+4
| | | | | * parser.c: attempt to fix #126211 ... Daniel
* swapped the attribute defaulting and attribute checking parts of parsing aDaniel Veillard2003-11-251-33/+33
| | | | | | | | * parser.c: swapped the attribute defaulting and attribute checking parts of parsing a new element start, fixes bug #127772 * result/valid/127772.* test/valid/127772.xml test/valid/dtds/127772.dtd: added the example in the regression tests Daniel
* moved xmlCleanupThreads() to the end of xmlCleanupParser() to avoid bugDaniel Veillard2003-11-251-1/+1
| | | | | | * parser.c: moved xmlCleanupThreads() to the end of xmlCleanupParser() to avoid bug #127851 Daniel
* less verbose on difference cleanup fixed xmlCleanupParser() doc work onDaniel Veillard2003-11-111-4/+4
| | | | | | | | | | | | | | * check-xinclude-test-suite.py: less verbose on difference * libxml.spec.in: cleanup * parser.c: fixed xmlCleanupParser() doc * doc/Makefile.am doc/apibuild.py doc/libxml2-api.xml doc/examples/Makefile.am doc/examples/example1.c doc/examples/examples.xml doc/examples/index.py doc/examples/test1.xml: work on adding C examples and generating automated information about those. examples.xml is autogenerated describing the examples. * example/Makefile.am: cleanup Daniel
* implemented the XML_PARSE_NONET parser option. converted xmllint.c to useDaniel Veillard2003-11-031-6/+29
| | | | | | | | * parser.c xmlIO.c include/libxml/parserInternals.h: implemented the XML_PARSE_NONET parser option. * xmllint.c: converted xmllint.c to use the option instead of relying on the global resolver variable. Daniel
* always generate line numbers DanielDaniel Veillard2003-10-311-0/+1
| | | | | * parser.c: always generate line numbers Daniel
* fixed another regression introduced in fixing #125823 DanielDaniel Veillard2003-10-311-2/+6
| | | | | * parser.c: fixed another regression introduced in fixing #125823 Daniel
* previous fix for #124044 was broken, correct fix provided. fixDaniel Veillard2003-10-311-0/+34
| | | | | | | | * python/libxml.c: previous fix for #124044 was broken, correct fix provided. * HTMLparser.c parser.c parserInternals.c xmlIO.c: fix xmlStopParser() and the error handlers to address #125877 Daniel
* side effect of #123105 patch, namespace resolution would fail when definedDaniel Veillard2003-10-301-0/+2
| | | | | | * parser.c: side effect of #123105 patch, namespace resolution would fail when defined in internal entities, fixes #125823 Daniel
* added xmlStrVPrintf functionAleksey Sanin2003-10-291-0/+24
|
* preparing release 2.6.1, updated and regenerated docs and APIs cleanup andDaniel Veillard2003-10-281-1/+14
| | | | | | | * configure.in NEWS doc/*: preparing release 2.6.1, updated and regenerated docs and APIs * parser.c: cleanup and last change to fix #123105 Daniel
* included a new function to reuse a Push parser context, based on GrahamDaniel Veillard2003-10-281-0/+101
| | | | | | | | | * parser.c include/libxml/parser.h: included a new function to reuse a Push parser context, based on Graham Bennett original code * valid.c: in HTML, a name in an input is not an ID * TODO: bug list update Daniel
* fixed #123263, the encoding is mandatory in a textdecl. DanielDaniel Veillard2003-10-281-1/+6
| | | | | * parser.c: fixed #123263, the encoding is mandatory in a textdecl. Daniel
* applied patch from #123105 about defaulted attributes from element comingDaniel Veillard2003-10-271-0/+4
| | | | | | * parser.c: applied patch from #123105 about defaulted attributes from element coming from an entity Daniel
* applied patch from Patrick Welche provided in bug #125432 , futureDaniel Veillard2003-10-241-0/+2
| | | | | | | | | * libxml.m4: applied patch from Patrick Welche provided in bug #125432 , future proofing the .m4 file. * parser.c: resetting the context should also reset the error * TODO: problem of conformance w.r.t. E20 was raised in the XML Core telconf and libxml2 isn't conformant there. Daniel
* removing xmldwalk module since it got merged with the xmlreader. cleanupDaniel Veillard2003-10-201-2/+3
| | | | | | | | | | | | | | | * 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
* applied patch from Chris Anderson to change back memcmp with CMPx() DanielDaniel Veillard2003-10-191-41/+60
| | | | | | * parser.c: applied patch from Chris Anderson to change back memcmp with CMPx() Daniel
* Changed all (?) occurences where validation macros (IS_xxx) hadWilliam M. Brack2003-10-181-49/+51
| | | | | | | | | | | | * include/libxml/parserInternals.h HTMLparser.c HTMLtree.c SAX2.c catalog.c debugXML.c entities.c parser.c relaxng.c testSAX.c tree.c valid.c xmlschemas.c xmlschemastypes.c xpath.c: Changed all (?) occurences where validation macros (IS_xxx) had single-byte arguments to use IS_xxx_CH instead (e.g. IS_BLANK changed to IS_BLANK_CH). This gets rid of many warning messages on certain platforms, and also high- lights places in the library which may need to be enhanced for proper UTF8 handling.
* enhanced macros to avoid breaking ABI from previous versions. modified toWilliam M. Brack2003-10-181-31/+31
| | | | | | | | | | | | * genChRanges.py, chvalid.c, include/libxml/chvalid.h, include/libxml/parserInternals.h: enhanced macros to avoid breaking ABI from previous versions. * catalog.c, parser.c, tree.c: modified to use IS_* macros defined in parserInternals.h. Makes maintenance much easier. * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid compilation warnings * configuration.in: fixed pushHTML test error; enhanced for better devel (me) testing
* remove the warning for startDocument(), as it is used by glade (orDaniel Veillard2003-10-171-34/+55
| | | | | | | | | | | | | * legacy.c: remove the warning for startDocument(), as it is used by glade (or glade-python) * parser.c relaxng.c xmlschemastypes.c: fixed an assorted set of invalid accesses found by running some Python based regression tests under valgrind. There is still a few leaks reported by the relaxng regressions which need some attention. * doc/Makefile.am: fixed a make install problem c.f. #124539 * include/libxml/parserInternals.h: addition of xmlParserMaxDepth patch from crutcher Daniel
* Marc Liyanage pointed out that xmlCleanupParser() was missingDaniel Veillard2003-10-151-0/+4
| | | | | | | * parser.c: Marc Liyanage pointed out that xmlCleanupParser() was missing xmlCleanupInputCallbacks and xmlCleanupOutputCallbacks calls. Daniel
* Dohhh ! DanielDaniel Veillard2003-10-111-5/+5
| | | | | Dohhh ! Daniel
* patch from Mike Hommey applied Windows patch from Jesse Pelton andDaniel Veillard2003-10-111-3/+10
| | | | | | | | | * configure.in: patch from Mike Hommey * threads.c: applied Windows patch from Jesse Pelton and Stephane Bidoul * parser.c: fix the potentially nasty access to ctxt->serror without checking first that the SAX block is version 2 Daniel
* fixed a nasty bug with interning some text strings prepare for beta5 ofDaniel Veillard2003-10-101-2/+1
| | | | | | | | | * SAX2.c: fixed a nasty bug with interning some text strings * configure.in: prepare for beta5 of 2.6.0 * libxml.h nanoftp.c nanohttp.c xmlIO.c include/libxml/xmlerror.h: better error handling for I/O and converted FTP and HTTP * parser.c: fixed another bug Daniel
* Setting up the framework for structured error reporting, touches a lot ofDaniel Veillard2003-10-101-11/+14
| | | | | | | | | | | * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
* bug in compression saving was crashing galeon, reported by teuf DanielDaniel Veillard2003-10-081-4/+6
| | | | | * parser.c: bug in compression saving was crashing galeon, reported by teuf Daniel
* cleaning up XPath error reporting that time. applied the two patches forDaniel Veillard2003-10-071-0/+1
| | | | | | | | | | | | | | | * error.c include/libxml/xmlerror.h include/libxml/xpath.h include/libxml/xpathInternals.h xpath.c: cleaning up XPath error reporting that time. * threads.c: applied the two patches for TLS threads on Windows from Jesse Pelton * parser.c: tiny safety patch for xmlStrPrintf() make sure the return is always zero terminated. Should also help detecting passing wrong buffer size easilly. * result/VC/* result/valid/rss.xml.err result/valid/xlink.xml.err: updated the results to follow the errors string generated by last commit. Daniel
* fixing the script replace sequences of RAW && NXT(.) == '.' with memcmpDaniel Veillard2003-10-061-217/+122
| | | | | | | | * check-xml-test-suite.py: fixing the script * parser.c: replace sequences of RAW && NXT(.) == '.' with memcmp calls, seems to not break conformance, slightly inflate the size of the gcc generated code though. Daniel
* more cleanup of error handling in parserInternals, sharing the routine forDaniel Veillard2003-10-051-26/+0
| | | | | | | * parserInternals.c parser.c valid.c include/libxml/parserInternals.h: more cleanup of error handling in parserInternals, sharing the routine for memory errors. Daniel
* more code cleanup, especially around error messages, the HTML parser hasDaniel Veillard2003-10-051-100/+84
| | | | | | | | | * HTMLparser.c Makefile.am legacy.c parser.c parserInternals.c include/libxml/xmlerror.h: more code cleanup, especially around error messages, the HTML parser has now been upgraded to the new handling. * result/HTML/*: a few changes in the resulting error messages Daniel
* more error/warning handling cleanups, the XML parser module should be okayDaniel Veillard2003-10-041-78/+107
| | | | | | * parser.c include/libxml/xmlerror.h: more error/warning handling cleanups, the XML parser module should be okay now. Daniel
* more cleanup in make tests more work in the transition to the new errorDaniel Veillard2003-10-031-149/+161
| | | | | | | | | * 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
* changed 'make tests' to use a concise output, scrolling to see where thingDaniel Veillard2003-10-021-75/+32
| | | | | | | | | | | | | | | | | | | * Makefile.am: changed 'make tests' to use a concise output, scrolling to see where thing broke wasn't pleasant * configure.in: some beta4 preparation, but not ready yet * error.c globals.c include/libxml/globals.h include/libxml/xmlerror.h: new error handling code, last error informations are stored in the parsing context or a global variable, new APIs to handle the xmlErrorPtr type. * parser.c parserInternals.c valid.c : started migrating to the new error handling code, it's a royal pain. * include/libxml/parser.h include/libxml/parserInternals.h: moved the definition of xmlNewParserCtxt() * parser.c: small potential buffer access problem in push code provided by Justin Fletcher * result/*.sax result/VC/PENesting* result/namespaces/* result/valid/*.err: some error messages were sligthly changed. Daniel
* introduced xmlStrPrintf function - wrapper for snprintfAleksey Sanin2003-10-021-0/+28
|
* made the predefined entities static predefined structures to avoid theDaniel Veillard2003-09-301-2/+0
| | | | | | | * entities.c legacy.c parser.c: made the predefined entities static predefined structures to avoid the work, memory and hazards associated to initialization/cleanup. Daniel
* added a new configure option --with-push, some cleanups, chased code sizeDaniel Veillard2003-09-301-36/+39
| | | | | | | | | | | * HTMLparser.c Makefile.am configure.in legacy.c parser.c parserInternals.c testHTML.c xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/xmlversion.h.in: added a new configure option --with-push, some cleanups, chased code size anomalies. Now a library configured --with-minimum is around 150KB, sounds good enough. Daniel
* added 2 new configure option: --with-reader --with-sax1 to allow removingDaniel Veillard2003-09-301-7/+57
| | | | | | | | | * Makefile.am SAX.c SAX2.c configure.in globals.c parser.c parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: added 2 new configure option: --with-reader --with-sax1 to allow removing the reader or non-xmlReadxxx() interfaces. Daniel
* Okay this is scary but it is just adding a configure option to disableDaniel Veillard2003-09-291-0/+2
| | | | | | | | | | | | | | | | | | * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
* cleanup, creating a new legacy.c module, made sure make tests ran inDaniel Veillard2003-09-281-0/+83
| | | | | | | | | | | | | * 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