summaryrefslogtreecommitdiff
path: root/SAX.c
Commit message (Collapse)AuthorAgeFilesLines
* cleaned up some warning on the Alpha DanielDaniel Veillard2001-07-171-1/+1
| | | | | * SAX.c xmlIO.c: cleaned up some warning on the Alpha Daniel
* store the line numbder in element->content, may break some software, needDaniel Veillard2001-07-121-0/+2
| | | | | | | * DOCBparser.c HTMLparser.c HTMLtree.c SAX.c debugXML.c parser.c tree.c xpointer.c: store the line numbder in element->content, may break some software, need a configuration mechanism Daniel
* trying to fix #56948, this led to an XPath fix, improvements of SAXDaniel Veillard2001-07-081-0/+18
| | | | | | | * SAX.c parser.c testXPath.c xpath.c: trying to fix #56948, this led to an XPath fix, improvements of SAX initialization, and an added option --nocdata to testXPath Daniel
* fixed a URI-Reference computation problem when validating small cleanupDaniel Veillard2001-07-041-22/+18
| | | | | | * SAX.c: fixed a URI-Reference computation problem when validating * xmlIO.c: small cleanup Daniel
* - SAX.c entities.c parser.c: changed completely the way entitiesDaniel Veillard2001-07-041-1/+2
| | | | | | | | are handled when running the parser in entity substitution mode. This fixes a bug reported by Stephan Kulow and nearly divides by 3 the amount of memory required by libxslt to load and process DocBook TDG. Daniel
* Summer's cleanup, a really big one:Daniel Veillard2001-06-241-1/+1
| | | | | | | | | | | | | | | | * AUTHORS: added William and Bjorn * include/libxml/*.h *.c README doc/*.html etc.: changed old email to daniel@veillard.com hopefully I won't have to do this again * doc/Makefile.am doc/html/*.html: cleanup makefile, checked that docs can be rebuilt cleanly now * include/libxml/xml*version.h*: removed include/libxml/xmlversion.h from CVs it's generated, added include/libxml/xmlwin32version.h also generated but which should change far less frequently. * catalog.c nanoftp.c: made sure to include libxml.h not libxml/xmlversion.h directly * include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h when compiling on WIN32 and MSC Daniel
* - TODO: updated - nanohttp.[ch] : started adding APIs to get theDaniel Veillard2001-05-281-1/+1
| | | | | | | | | | - TODO: updated - nanohttp.[ch] : started adding APIs to get the redirected URL when this occurs (needed for further base computation - tree.h: cleanup - encoding.c: cleanup - SAX.c: minor change around ctxt->loadsubset Daniel
* - DOCBparser.c SAX.c: a bit more work on entities processing.Daniel Veillard2001-04-251-2/+2
| | | | | Still Need to cleanup XML output and references in attributes Daniel
* - SAX.c testDocbook.c DOCBparser.c: more work on the supportDaniel Veillard2001-04-241-10/+10
| | | | | | | of external parsed entities, added --noent to testDocbook - valid.c: Garry Pennington found an uninitialized variable access in xmlValidateElementContent() Daniel
* Time to work on helping the Gnome Doc project, first step is reintegratingDaniel Veillard2001-04-231-31/+36
| | | | | | | | | | | the SGML DocBook parser in libxml2 distrib: - DOCBparser.c DOCBparser.h testDocbook.c configure.in Makefile.am xmlversion.h.in: started (re)integrating the DocBook SGML parser. - SAX.[ch]: cleanup and updates for DocBook - debugXML.c parser.h tree.[ch] valid.c xpath.c: small macro or ex SGML identifier changes - valid.c: removed a static unused function. Daniel
* trio upgrade and integrationBjorn Reese2001-04-211-6/+1
|
* 3 hours of debug, this was hell:Daniel Veillard2001-04-181-1/+1
| | | | | | | | - SAX.c parser.c xpath.c: generating IDs when not validating from an external parsed entity was poisoning the ID has table with removed values. This was killing XSLT on the KDE help browser. Daniel
* - HTMLparser.c HTMLtree.c SAX.c debugXML.c error.c parserInternals.cDaniel Veillard2001-03-261-10/+6
| | | | | | | | | testHTML.c testSAX.c tree.c valid.c xmlIO.c xmlmemory.c xmlversion.h.in xpointer.c: of course the way I defined UNUSED breaks on old gcc version. Try to be smart and also define it directly in xmlversion.h - configure.in: removed -ansi flag from the pedantic set Daniel
* Huge cleanup, I switched to compile withDaniel Veillard2001-03-241-6/+16
| | | | | | | | | | | | | | | | | | | | -Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline - HTMLparser.[ch] HTMLtree.c SAX.c debugXML.c encoding.[ch] encoding.h entities.c error.c list.[ch] nanoftp.c nanohttp.c parser.[ch] parserInternals.[ch] testHTML.c testSAX.c testURI.c testXPath.c tree.[ch] uri.c valid.[ch] xinclude.c xmlIO.[ch] xmllint.c xmlmemory.c xpath.c xpathInternals.h xpointer.[ch] example/gjobread.c: Cleanup, staticfied a number of non-exported functions, detected and cleaned up a dozen of problem found this way, avoided a lot of public function name/typedef/system names clashes - doc/xml.html: updated - configure.in: switched private flags to the really pedantic ones. Daniel
* A typo and an obscure bug fix:Daniel Veillard2001-03-211-4/+14
| | | | | | - parser.c: fixed a function name header typo - SAX.c: notations can also occur in external subset. Daniel
* - SAX.c: external subset notations were improperly registeredDaniel Veillard2001-03-141-1/+1
| | | | | in the internal subset. Daniel
* - parser.c SAX.c: the new content parsing code raised anDaniel Veillard2001-03-071-1/+8
| | | | | | ugly bug in the characters() SAX callback. Found it just because of strangeness in XSLT XML Rec ouptut :-( Daniel
* Revert directory structure changesOwen Taylor2001-02-231-0/+1751
|
* moved to libxml directory - this allow simplify automake/autoconf. NowCET 2001 Tomasz Kłoczko2001-02-231-1751/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Feb 23 02:03:56 CET 2001 Tomasz Kłoczko <kloczek@pld.org.pl> * *.c *.h libxml files: moved to libxml directory - this allow simplify automake/autoconf. Now isn't neccessary hack on am/ac level for make and remove libxml symlink (modified for this also configure.in and main Makefile.am). Now automake abilities are used in best way (like in many other projects with libraries). * include/win32config.h: moved to libxml directory (now include directory isn't neccessary). * Makefile.am, examples/Makefile.am, libxml/Makefile.am: added empty DEFS and in INCLUDES rest only -I$(top_builddir) - this allow minimize parameters count passed to libtool script (now compilation is also slyghtly more quiet). * configure.in: simplifies libzdetestion - prepare separated variables for keep libz name and path to libz header files isn't realy neccessary (if someone have libz installed in non standard prefix path to header files ald library can be passed as: $ CFALGS="-I</libz.h/path>" LDFLAGS="-L</libz/path>" ./configure * autogen.sh: check now for libxml/entities.h. After above building libxml pass correctly and also pass "make install DESTDIR=</install/prefix>" from tar ball generated by "make dist". Seems ac/am reorganization is finished. This changes not touches any other things on *.{c,h} files level.
* bit of testing, a bit of fixing, a bit of testing, a bit of fixing ...Daniel Veillard2001-02-111-10/+12
| | | | | | * xpath.c: small fixup * SAX.c: don't warn on empty namespaces. Daniel
* Bug fixes and an extension found and required by XSLT:Daniel Veillard2001-02-051-1/+2
| | | | | | | | | | | - xpath.c: bug fixes found from XSLT - tree.c: preserve node->name special values when copying nodes. - parserInternals.[ch] parser.[ch] SAX.c : added a mode where external subset are fetched when available but without full validation. Added xmlLoadExtDtdDefaultValue, need a function. - HTMLtree.c: add support for xmlStringTextNoenc for XSLt HTML output with encoding disabled. Daniel
* Bug fixes new Xinclude tests:Daniel Veillard2000-11-121-1/+1
| | | | | | | | | | | | | | - nanoftp.c: fixed gcc 2.95 new warnings - SAX.c: fixed a stupid bug - tree.c: fixed a formatting problem when round-tripping from/to memory - xinclude.c: chased memleak, fixed a base problem - xpointer.c: added xmlXPtrBuildRangeNodeList(), finished ? xmlXPtrBuildNodeList() - TODO: updated - Makefile.am test/XInclude/docs test/XInclude/ents result/XInclude: adding a first small set of regression tests for XInclude Daniel
* patched to redirrect all "out of context" error messages toDaniel Veillard2000-10-251-45/+82
| | | | | | | | | | | | a reconfigurable routine. The changes are: * xmlerror.h : added the export of an error context type (void *) an error handler type xmlGenericErrorFunc there is an interface xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler); to reset the error handling routine and its argument (by default it's equivalent to respectively fprintf and stderr. * all the c files: all wild accesses to stderr or stdout within the library have been replaced to calls to the handler. Daniel
* HTML attributes handling:Daniel Veillard2000-10-151-6/+5
| | | | | | - SAX.c: HTML attributes need normalization too (Bjorn Reese) - HTMLparser.[ch]: addded htmlIsScriptAttribute() Daniel
* - HTMLparser.c HTMLtree.[ch] SAX.c testHTML.c tree.c: fixed HTMLDaniel Veillard2000-10-141-2/+2
| | | | | | | support for SCRIPT and STYLE with help from Bjorn Reese - test/HTML/* result/HTML/*: added simple testcase and updated the existing ones. Daniel
* - moved xml-error.h to xmlerror.h: seems this allowed to bypassDaniel Veillard2000-10-091-1/+1
| | | | | | the automake bug where wrong dependancies were generated. - xpath.[ch]: worked on XPointer Daniel
* - configure.in: releasing 2.2.4Daniel Veillard2000-10-011-1/+1
| | | | | | | | | | - parser.[ch]: added xmlStrEqual() - HTMLparser.c HTMLtree.c SAX.c debugXML.c entities.c parser.c tree.c valid.c xlink.c xpath.c: converted all !xmlStrcmp to use xmlStrEqual instead - TODO: updated - added an XPath test Daniel
* New set of cleanups, released 2.2.3:LIBXML_2_2_3Daniel Veillard2000-09-171-6/+6
| | | | | | | | | - SAX.c debugXML.c parser.c parserInternals.c tree.c valid.c xpath.c: removed a few warnings in pedantic mode ... - parserInternals.c parser.c: moved encoding switching function to parserInternals.c - configure.in, doc/Makefile.am libxml.spec.in: released 2.2.3 Daniel
* Jumbo patch, resync of W3C/Gnome CVS trees:Daniel Veillard2000-09-101-2/+109
| | | | | | | | | | | | | | | - uri.c tree.c SAX.c parser.c entities.c debugXML.c: finished the cleanup of the computation of URI references when seeking external entities. The URI reference string and the resulting URI are both stored now. - parser.c HTMLparser.c valid.c nanoftp.c nanohttp.c xpath.c: large s(n)printf checks and cleanup from Denis Barbier <barbier@imacs.polytechnique.fr> - xmlversion.h.in tree.h: couple of SGML declarations for a possible docbook module. - result/VC/ : a couple of test output changed due to the change of the entities URI Daniel
* Bunch of new parser cleanup work:Daniel Veillard2000-08-271-1/+7
| | | | | | | | | | | | | | | | | - SAX.c tree.c debugXML.c: fixed bogus behaviour when an undeclared namespace prefix was used, added a warning. Cleaned up support w.r.t. entities, spilling out a warning and being pedantic on lookups. - test/warning/ent9 : added testcase for previous example. - TODO: updated - parserInternals.h parser.c: changed the way names are parsed now allow infinite size and decrease penalty for normal use - parser.c: Started a big cleanup/check of the parser code, fixed some of the most tortuous entity code, spotted code unused anymore - test/*: added tests for very long names and related nasty things. Daniel
* libxml now grok Docbook-3.1.5 and Docbook-4.1.1 DTDs, thisDaniel Veillard2000-08-261-5/+14
| | | | | | | | | | | | | | | | | popped out a couple of bugs and 3 speed issues, there is only on minor speed issue left. Assorted collection of user reported bugs and fixes: - doc/encoding.html: added encoding aliases doc - doc/xml.html: updates - encoding.[ch]: added EncodingAliases functions - entities.[ch] valid.[ch] debugXML.c: removed two serious bottleneck affecting large DTDs like Docbook - parser.[ch] xmllint.c: added a pedantic option, will be useful - SAX.c: redefinition of entities is reported in pedantic mode - testHTML.c: uninitialized warning from gcc - uri.c: fixed a couple of bugs - TODO: added issue raised by Michael Daniel
* work done on auto-opening of <p> tags and cleanup of SAX output, Daniel.Daniel Veillard2000-08-191-1/+3
|
* Large sync between my W3C base and Gnome's one:Daniel Veillard2000-08-121-0/+21
| | | | | | | | | | | | | | | | | | - parser.[ch]: added xmlGetFeaturesList() xmlGetFeature() and xmlAddFeature() - tree.[ch]: added xmlAddChildList() - xmllint.c: MAP_FAILED macro test - parser.h: added xmlParseCtxtExternalEntity() - valid.c: applied bug fixes removed warning - tree.c: added CDATA block to elements content - testSAX.c: cleanup of output - testHTML.c: added SAX testing - encoding.c: better error recovery - SAX.c, parser.c: fixed one of the external entity processing of the OASis testsuite - Makefile.am: added HTML SAX regression tests - configure.in: bumped to 2.2.2 - test/HTML/ result/HTML: added a few of HTML tests, and added the SAX results Daniel
* - doc/encoding.html doc/xml.html: added I18N docDaniel Veillard2000-07-141-6/+9
| | | | | | | | | | | | | | | | | | | | - encoding.[ch] HTMLtree.[ch] parser.c HTMLparser.c: I18N encoding improvements, both parser and filters, added ASCII & HTML, fixed the ISO-Latin-1 one - xmllint.c testHTML.c: added/made visible --encode - debugXML.c : cleanup - most .c files: applied patches due to warning on Windows and when using Sun Pro cc compiler - xpath.c : cleanup memleaks - nanoftp.c : added a TESTING preprocessor flag for standalong compile so that people can report bugs more easilly - nanohttp.c : ditched socklen_t which was a portability mess and replaced it with unsigned int. - tree.[ch]: added xmlHasProp() - TODO: updated - test/ : added more test for entities, NS, encoding, HTML, wap - configure.in: preparing for 2.2.0 release Daniel
* more cleanup of the HTML parser to force it to not bypass SAX, Daniel.Daniel Veillard2000-06-301-3/+15
| | | | Ready for 2.1.1 it seems
* - win32config.h.in: updatedDaniel Veillard2000-06-301-7/+12
| | | | | | | | | | | | | | - xmlversion.h.in: crap forgot to update this, this mean 2.1.0 lacks iconv support :-( need to release 2.1.1 - configure.in: release 2.1.1 - HTMLparser: fixed bug #14784 - xpath.c HTMLparser.c encoding.c parser.c: fix warning raised by Windows compiler - HTMLparser.c SAX.c HTMLtree.h tree.h: create HTML document in the SAX startDocument() callback. - TODO: updated - rebuild doc Daniel
* - Large resync between W3C and Gnome treeDaniel Veillard2000-06-281-37/+131
| | | | | | | | | | | | | | | | | | | - configure.in: 2.1.0 prerelease - example/Makefile.am example/gjobread.c tree.h: work on libxml1 libxml2 convergence. - nanoftp, nanohttp.c: fixed stalled connections probs - HTMLtree.c SAX.c : support for attribute without values in HTML for andersca - valid.c: Fixed most validation + namespace problems - HTMLparser.c: start document callback for andersca - debugXML.c xpath.c: lots of XPath fixups from Picdar Technology - parser.h, SAX.c: serious speed improvement for large CDATA blocks - encoding.[ch] xmlIO.[ch]: Improved seriously saving to different encoding - config.h.in parser.c xmllint.c: added xmlCheckVersion() and the LIBXML_TEST_VERSION macro Daniel
* revamped the encoding support, added iconv support, so now libxml ifDaniel Veillard2000-05-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | * encoding.[ch], xmlIO.[ch], parser.c, configure.in : revamped the encoding support, added iconv support, so now libxml if compiled with iconv automatically support japanese encodings among others. Work based on initial patch from Yuan-Chen Cheng I may have broken binary compat in the encoding handler registration scheme, but that was so utterly broken I don't expect anybody to have used this feature until now. * parserInternals.h: fixup on the CHAR range macro * xml-error.h, parser.c: catch URL/URI errors using the uri.c code. * tree.[ch]: added xmlBufferGrow(), was needed for iconv * uri.c: added xmlParseURI() I can't believe I forgot to implement this one in 2.0 !!! * SAX.c: moved doc->encoding update in the endDocument() call. * TODO: updated. Iconv rules :-) Daniel
* removed extraneous xmlRemoveProp definition added item aboutDaniel Veillard2000-04-241-10/+21
| | | | | | | | | | | | | * tree.h: removed extraneous xmlRemoveProp definition * TODO: added item about --disable-corba configure switch * tree.c parser.c: fixed problems for xmlCopyDoc and postvalidation * nanoftp.c: fixed include problems giving troubles on AIX and slowlaris * xmlIO.[ch] valid.h tree.[ch] xlink.c xmlmemory.c uri.c parser.c nanoftp.c nanohttp.c SAX.c testSAX.c : comment and headers changes to lower gtk-doc number of warnings * doc/html/*: rebuilt docs Daniel
* Work done on the plane, ready to release libxml2-2.0.0, DanielDaniel Veillard2000-04-031-9/+9
|
* This is the 2.0.0-beta, lots and lots and lots of changesDaniel Veillard2000-03-141-87/+265
| | | | | | Have a look at http://xmlsoft.org/upgrade.html Daniel
* - added xmlRemovePropDaniel Veillard2000-01-031-10/+9
| | | | | | | | | | | | | - changed the way Windows socket stuff get included - removed an indetermination xmLDecl/PI(xml...) - xmlNewNs wasn't checking for double definition - fixed a problem with dist-hook duplicates - fixed the loading of external entities APIs, now xmlLoadExternalEntity() is used everywhere - now the xhtml spec validates with the xhtml DTD. - error.c: fixed crashes in case of no input stream - added the xhtml spec and dtds to the validation tests and results Daniel
* - Lots of improvements, too long to list hereDaniel Veillard1999-12-281-4/+12
| | | | | | | - Push mode for the XML parser (HTML to come) - XML shell like interface for debug - improvements on XPath and validation Daniel
* - fix for PIs name starting with xmlDaniel Veillard1999-12-221-0/+5
| | | | | | - fixed a potential problem with || and && ops - generate win32config.h for those on the Other Side ! Daniel
* - release 1.8.2 - HTML handling improvement - new tree handling functionsDaniel Veillard1999-12-211-1/+6
| | | | | | | | | - release 1.8.2 - HTML handling improvement - new tree handling functions - default namespace on attribute bug fixed - libxml use for C++ fixed (for good this time !) Daniel
* Closing #3908 and #3937 and a memory leak in the SAX APIDaniel Veillard1999-12-031-0/+1
| | | | | | added SAX.h mostly useful for the doc generation Regenerated all the docs, Daniel
* BUG FIXED #2784 HTML parsing/output improvements Rebuilt, updated the docsDaniel Veillard1999-10-251-0/+6
| | | | | | | | BUG FIXED #2784 HTML parsing/output improvements Rebuilt, updated the docs Improvement of regression scripts, make testall should look clean Released as 1.7.4
* Revamped HTML parsing, lots of bug fixes for HTML stuff,Daniel Veillard1999-10-141-1/+1
| | | | | | | Added xmlValidGetValidElements and xmlValidGetPotentialChildren, Completed and cleaned up the tests, Added doc for new modules gnome-xml-xmlmemory.html and gnome-xml-nanohttp.html, Daniel
* Fixed CHAR, errno, alpha RPM compile, updated doc, DanielLIB_XML_1_7_1Daniel Veillard1999-09-231-44/+44
|
* Ready for 1.7.0, major changes, nanohttp, cleanup, binary compat with 1.4,Daniel Veillard1999-09-221-9/+20
| | | | etc... See Changelog, Daniel.