aboutsummaryrefslogtreecommitdiffstats
path: root/xmllint.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed the data callback on transition functionality which was broken whenDaniel Veillard2002-09-241-3/+3
| | | | | | | | | | | | | * 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
* fixed another stupid bug in xmlGetNodePath() --version now report theDaniel Veillard2002-09-171-2/+52
| | | | | | * tree.c: fixed another stupid bug in xmlGetNodePath() * xmllint.c: --version now report the options compiled in Daniel
* memory leak reporting was broken after a change of the preprocessor symbolDaniel Veillard2002-09-051-2/+0
| | | | | | * xmllint.c: memory leak reporting was broken after a change of the preprocessor symbol used to activate it. Daniel
* replaced sprintf() with snprintf() to prevent possible buffer overflowAleksey Sanin2002-06-141-10/+27
| | | | | | | | * DOCBparser.c HTMLparser.c debugXML.c encoding.c nanoftp.c nanohttp.c parser.c tree.c uri.c xmlIO.c xmllint.c xpath.c: replaced sprintf() with snprintf() to prevent possible buffer overflow (the bug was pointed out by Anju Premachandran)
* applied a fix from Anthony Jones for -o /--output DanielDaniel Veillard2002-04-091-1/+1
| | | | | * xmllint.c: applied a fix from Anthony Jones for -o /--output Daniel
* owen pointed out a problem with the ftime fix, gettimeofday() was notDaniel Veillard2002-03-071-1/+6
| | | | | | | * configure.in xmllint.c: owen pointed out a problem with the ftime fix, gettimeofday() was not detected by configure and the ftime header wasn't included, dohhh Daniel
* trying to fix #71457 for timing precision when gettimeofday() is notDaniel Veillard2002-03-071-0/+25
| | | | | | * configure.in xmllint.c: trying to fix #71457 for timing precision when gettimeofday() is not availble but ftime() is Daniel
* close #72663 and #72658, don't memdump unless compiled explicitely withDaniel Veillard2002-03-011-0/+2
| | | | | | * xmllint.c: close #72663 and #72658, don't memdump unless compiled explicitely with memory debugging switched on Daniel
* fixing #68748 DanielDaniel Veillard2002-02-081-0/+1
| | | | | * xmllint.c win32/win32config.h: fixing #68748 Daniel
* added pointers to the web pages in the usage() DanielDaniel Veillard2002-01-251-0/+2
| | | | | * xmllint.c: added pointers to the web pages in the usage() Daniel
* Anthony Jones pointed a bug in xmlCopyEntity() DanielDaniel Veillard2002-01-091-3/+5
| | | | | * entities.c: Anthony Jones pointed a bug in xmlCopyEntity() 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
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-4/+4
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* applied Justin Fletcher patch for --output or -o danielDaniel Veillard2001-12-181-10/+49
| | | | | * xmllint.c: applied Justin Fletcher patch for --output or -o daniel
* applied Justin Fletcher generic timing patch similar to the one alreadyDaniel Veillard2001-12-181-58/+125
| | | | | | * xmllint.c: applied Justin Fletcher generic timing patch similar to the one already applied to xsltproc. Daniel
* fix the xmlStrdup() used in the previous patch. added --dropdtd fixedDaniel Veillard2001-12-131-1/+26
| | | | | | | | * valid.c: fix the xmlStrdup() used in the previous patch. * valid.c: added --dropdtd * tree.c: fixed xmlUnlinkNode so it also removes the references from the document if the node is a DTD Daniel
* removed another strdup() removed the HP/UX entry DanielDaniel Veillard2001-12-131-1/+1
| | | | | | * xmllint.c: removed another strdup() * doc/FAQ: removed the HP/UX entry Daniel
* fix bug #66816 when validating. don't use sys/time.h if configure did notDaniel Veillard2001-12-131-0/+2
| | | | | | * valid.c: fix bug #66816 when validating. * xmllint.c: don't use sys/time.h if configure did not found it Daniel
* applied Geert Kloosterman's patch to fix --repeat --timing output DanielDaniel Veillard2001-12-041-8/+8
| | | | | | * xmllint.c: applied Geert Kloosterman's patch to fix --repeat --timing output Daniel
* preparing 2.4.11 better --catalogs description DanielDaniel Veillard2001-11-261-2/+3
| | | | | | * configure.in include/libxml/xmlwin32version.h: preparing 2.4.11 * xmllint.c: better --catalogs description Daniel
* Morus Walter patch to allow --format and --encode DanielDaniel Veillard2001-11-081-3/+13
| | | | | * xmllint.c: Morus Walter patch to allow --format and --encode Daniel
* added entities testing to the Thread test make the test reasonable fix theDaniel Veillard2001-10-221-0/+47
| | | | | | | | | * test/threads/*: added entities testing to the Thread test * testThreads.c: make the test reasonable * DOCBparser.c: fix the DTD public and system ID * xmllint.c: added --sgml for SGML DocBook importing * Makefile.am: added Docbtests target Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-0/+1
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* xmllint.c - fixing typoMDT 2001 John Fleck2001-09-241-2/+2
| | | | | | Sun Sep 23 21:02:39 MDT 2001 John Fleck <jfleck@inkstain.net> * xmllint.c - fixing typo
* John Fleck fixed typos in the options output fix ignorable white space SAXDaniel Veillard2001-09-091-2/+2
| | | | | | | | * 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
* added a --convert option to xmlcatalog to convert SGML ones to the XMLDaniel Veillard2001-08-251-1/+5
| | | | | | | | * include/libxml/catalog.h catalog.c xmlcatalog.c: added a --convert option to xmlcatalog to convert SGML ones to the XML syntax. * xmllint.c: small cleanup for $SGML_CATALOG_FILES support. Daniel
* starts to look okay, really plugged the new framework, cleaned a lot ofDaniel Veillard2001-08-221-8/+21
| | | | | | | | | | | * 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
* fixed a line formatting problem DanielDaniel Veillard2001-08-191-1/+3
| | | | | * xmllint.c: fixed a line formatting problem Daniel
* adding a --format option DanielDaniel Veillard2001-08-141-1/+14
| | | | | * xmllint.c: adding a --format option Daniel
* allow to inherit attributes from the DTD directly in the tree, this isDaniel Veillard2001-08-071-3/+12
| | | | | | | | | | * SAX.c testXPath.c valid.c xmllint.c include/libxml/valid.h: allow to inherit attributes from the DTD directly in the tree, this is needed for XPath and can be a useful feature. Inherited namespaces are always provided at the tree level now * test/defattr* result/defattr* result/noent/defattr*: added a couple of tests for this feature (XSLT being the prime user). Daniel
* applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSCDaniel Veillard2001-08-031-9/+0
| | | | | | | | | | * 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
* removing history/readline changed this slightly make element content lineDaniel Veillard2001-07-231-0/+1
| | | | | | | | | * result/scripts/base*: removing history/readline changed this slightly * include/libxml/parser.h SAX.c parser.c parserInternals.c xmllint.c: make element content line number generation optionnal to avoid breaking old apps added interface to switch Daniel
* fixed compilation under Cygwin #57503 update DanielDaniel Veillard2001-07-141-0/+3
| | | | | | * xmllint.c: fixed compilation under Cygwin #57503 * TODO: update 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
* - valid.c: fixed a bug found when post validating an entity refDaniel Veillard2001-06-201-43/+72
| | | | | | - xmllint.c: added --loaddtd and sligly changed --postvalid to activate it too Daniel
* - TODO: updated adding cleanup of generated docDaniel Veillard2001-06-171-0/+5
| | | | | | | - configure.in: prepared to release 2.3.11 - xmllint.c: added --version for bug reporting - doc/html/*.html: rebuilt the doc Daniel
* - catalog.[ch]: fixes and add xmlLoadCatalogs()Daniel Veillard2001-05-221-0/+19
| | | | | | | | | - DOCBparser.c: small cleanup - xmllint.c: added a --catalogs option to load catalogs from $SGML_CATALOG_FILES - tree.c: cleanup - configure.in: iconv library fixup, ICONV_LIBS Daniel
* trio upgrade and integrationBjorn Reese2001-04-211-7/+1
|
* - xmlversion.h.in win32config.h win32/libxml2/*: appliedDaniel Veillard2001-04-161-0/+8
| | | | | | Igor Zlatkovic patches for MSC compilation and added his updates Daniel
* - tree.c: xmlNewDoc was missing the charset initializationDaniel Veillard2001-04-111-5/+21
| | | | | | - xmllint.c: added --auto to autogenerate a doc, allow to reproduce the problem fixed on xmlNewDoc Daniel
* - xmllint.c: Dan Timis reported a portability problemDaniel Veillard2001-04-041-1/+4
| | | | | on Macs without mmap, fixed it. Daniel
* Huge cleanup, I switched to compile withDaniel Veillard2001-03-241-12/+12
| | | | | | | | | | | | | | | | | | | | -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
* Okay time to improve performances, gprof session:Daniel Veillard2001-02-251-2/+100
| | | | | | | | | | | | | | before real 0m2.483s (2.3.2 release yesterday) current real 0m1.763s when parsing (with tree build/freeing) db10000.xml from XSLTMark: - xmlmemory.h HTMLparser.c HTMLtree.c entities.c parser.c xpath.c xpointer.c tree.c uri.c valid.c xinclude.c xmlIO.c: avoiding memcpy in production builds MEM_CLEANUP macro use - parser.[ch] parserInternals.c: optimizations of the tightest internal loops inside the parser. Better checking of I/O flushing/loading conditions - xmllint.c : added --timing Daniel
* - xmllint.[c1] : added return code errors for xmllintDaniel Veillard2001-02-231-1/+6
| | | | | - xpath.c: specific debug dump function for result value trees Daniel
* Restarted hacking :-) :Daniel Veillard2001-01-031-4/+18
| | | | | | | | | | - xmllint.c: Made is so if the file name is "-" is will read form standard input. Sven Heinicke <sven@zen.org> - tree.c: fixed a problem when growing buffer - tree.h: fixed the comment of the node types following andersca comment - TODO: updated Daniel
* Finally had a bit of time to resynch both trees:Daniel Veillard2000-12-271-2/+18
| | | | | | | | | | | | | | | | | | | | - HTMLparser.[ch]: added a way to avoid adding automatically omitted tags. htmlHandleOmittedElem() allows to change the default handling. - tree.[ch] xmllint.c: added xmlDocDumpFormatMemory() and xmlDocDumpFormatMemoryEnc(), uses memory functions for output of xmllint too when using --memory flag, added a memory test suite at the Makefile level. - xpathInternals.h xpath.[ch] xpointer.c: fixed problems with namespace use when encountering QNames in XPath evalation, added xmlns() scheme in XPointer. - nanoftp.c : incorporated a fix - parser.c xmlIO.c: fixed problems raised with encoding when using the memory I/O - parserInternals.c: closed bug 25934 reported by torsten.landschoff@innominate.de - TODO: updated Daniel
* Big OpenVMS patch: - nanohttp.c parser.[ch] tree.[ch] xmlIO.[ch] xmllint.cDaniel Veillard2000-11-251-0/+6
| | | | | | | | | Big OpenVMS patch: - nanohttp.c parser.[ch] tree.[ch] xmlIO.[ch] xmllint.c xpath.c parserInternals.h vms/build_libxml.com vms/config.vms Makefile.am: integrated a set of OpenVMS changes from Howard Taylor <Howard.Taylor@pacoast.com> Daniel
* XInclude and other stuff while travelling. Contributed patches:Daniel Veillard2000-11-061-3/+21
| | | | | | | | | | | | - tree.[ch] xinclude.[ch] xmllint.c configure.in valid.c debugXML.c xmlversion.h.in: Started adding XInclude support, this is a new xmllint option - tree.c xpath.c: applied TOM patches for XPath - xpointer.c: fixed a couple of errors. - uri.c: added an escaping function needed for xinclude - testXPath.c hash.c HTMLtree.c: minor cleanups raised by new warning from RH70 gcc's version Daniel
* patched to redirrect all "out of context" error messages toDaniel Veillard2000-10-251-20/+25
| | | | | | | | | | | | 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
* - tree.c valid.c xmllint.c: Fixed a few postvalidation bugsDaniel Veillard2000-10-111-2/+31
| | | | | and added a --dtdvalid option to xmllint used to test it Daniel