|
69f04562
|
2011-08-19T11:05:04
|
|
Fix an off by one error in encoding
this off by one error doesn't seems to reproduce on linux
but the error is real.
|
|
d7eb9b5d
|
2011-08-04T10:28:59
|
|
Fix RELAX NG include bug #655288
When overriding during include, children of the root
node are scanned. But the root node was gotten with
doc->children, instead of xmlDocGetRootElement.
|
|
8bb12988
|
2011-08-04T16:40:48
|
|
Fix XSD validation bug #630130
This bug in xmlschemas made validation with the GML Schemas fail
Test cases to be commited separately
|
|
4c4653e5
|
2011-06-05T11:29:29
|
|
Add exception for new W3C PI xml-model
|
|
c62efc84
|
2011-05-16T16:03:50
|
|
Add options to ignore the internal encoding
For both XML and HTML, the document can provide an encoding
either in XMLDecl in XML, or as a meta element in HTML head.
This adds options to ignore those encodings if the encoding
is known in advace for example if the content had been converted
before being passed to the parser.
* parser.c include/libxml/parser.h: add XML_PARSE_IGNORE_ENC option
for XML parsing
* include/libxml/HTMLparser.h HTMLparser.c: adds the
HTML_PARSE_IGNORE_ENC for HTML parsing
* HTMLtree.c: fix the handling of saving when an unknown encoding is
defined in meta document header
* xmllint.c: add a --noenc option to activate the new parser options
|
|
c31e06cc
|
2011-05-09T12:52:28
|
|
python: flag two unused args
|
|
0329a147
|
2011-05-09T15:11:45
|
|
testapi: use the right type for the check
Fixes a compiler warning. Also wrap the long line if statement.
|
|
fdd3c04a
|
2011-05-09T12:54:10
|
|
python: remove unused variable
|
|
dff8d0f7
|
2011-05-09T12:14:59
|
|
various: handle return values of write calls
|
|
4ea1866f
|
2011-05-09T11:45:23
|
|
testWriter: xmlTextWriterWriteFormatElement wants an int instead of a long int
Fixes compiler warnings about wrong argument type.
|
|
851ef948
|
2011-05-10T13:06:09
|
|
runxmlconf: update to latest testsuite version
|
|
a46b2357
|
2011-05-10T11:53:58
|
|
configure: acconfig.h is deprecated since autoconf-2.50
Remove deprecated file (leftover from autoconf-2.13). The generated config.h is
the same as we already use the 3-arg versions of AC_DEFINE.
|
|
85deb486
|
2011-05-10T10:55:07
|
|
configure: add -Wno-long-long to CFLAGS
|
|
c9c939d6
|
2011-05-10T10:34:41
|
|
configure: support silent automake rules if possible
This gives us a much less noisy build and makes error stand out a lot more.
|
|
ecb5d5af
|
2011-05-06T17:40:10
|
|
xmlmemory: add a cast as size_t has no portable printf modifier
Also use %lu as that is more appropriate for size_t.
|
|
a1540403
|
2011-05-06T17:03:51
|
|
xpath: remove unused variable
As noted by gcc, this variable is not beeing used.
|
|
d7958b21
|
2011-03-23T08:13:06
|
|
Fix some potential problems on reallocation failures
The count was incremented before the allocation
and not fixed in case of failure
* xpath.c: corrects a few instances where the available count of some
structure is updated before we know the allocation actually
succeeds
|
|
dde64081
|
2011-03-23T08:12:26
|
|
Improve documentation a bit
|
|
28fdf8bb
|
2011-03-07T08:12:39
|
|
Updated URL for lxml python bindings
Also fixed the warning for XPath threaded usage a bit
|
|
c2a0fdc4
|
2011-02-23T22:44:05
|
|
__xmlRaiseError: fix use of the structured callback channel
If the structured callback channel is initialized, do not perform
unneeded initialization of the old callback channel to avoid
clobbering of the structured callback channel's data.
|
|
241d4a10
|
2011-02-23T22:30:59
|
|
__xmlRaiseError: fix the structured callback channel's data initialization
if we initialize the structured channel from the sax handler we should also
pass the userData
|
|
1b9128ba
|
2011-02-23T22:23:25
|
|
__xmlRaiseError: remove redundant schannel initialization
In case the domain is XML_FROM_VALID, ctxt and schannel are already initialized
earlier with the same data
|
|
111d705c
|
2011-02-23T22:14:19
|
|
__xmlRaiseError: do cheap code check early
if error code is XML_ERR_OK return immediately
|
|
c794eb5b
|
2011-02-18T12:17:17
|
|
Fix memory corruption
when xmlParseBalancedChunkMemoryInternal is called from xmlParseBalancedChunk
|
|
fec31bcd
|
2010-11-18T11:07:24
|
|
Small fix for previous commit
|
|
df83c17e
|
2010-11-17T14:12:14
|
|
Fix a potential freeing error in XPath
|
|
ae874211
|
2010-11-17T14:10:39
|
|
634846 Remove a linking option breaking Windows VC10
as pointed out by David Connet <dcon@agilityrecordbook.com>
|
|
d794a84a
|
2010-11-15T13:00:29
|
|
599241 fix an initialization problem on Win64
as the thread_t is not an integral datatype on that platform
|
|
0cbeb50e
|
2010-11-15T12:06:29
|
|
Fix a potential memory access error
in case of a previus allocation error
|
|
364e3d2b
|
2010-11-10T10:13:51
|
|
fix win build
|
|
00819877
|
2010-11-04T21:53:14
|
|
Reactivate the shared library versionning script
|
|
4c2e7c65
|
2010-11-04T18:35:57
|
|
Release of libxml2-2.7.8
|
|
82143f4e
|
2010-11-04T17:55:41
|
|
595789 fix a remaining potential Solaris problem
|
|
48f7dcb7
|
2010-11-04T17:42:42
|
|
480323 add code to plug in ICU converters by default
This is not configured in by default but after some serious massaging
incorporate that patch from Chromium/Chrome.
|
|
fbd4ddf2
|
2010-11-04T15:45:46
|
|
607273 Fix python detection on MSys/Windows
Fix the lookup for python executable and headers, add an
extra variable for new dependancies when linking for Python
on Win32
|
|
60587d6e
|
2010-11-04T15:16:27
|
|
606592 update language ID parser to RFC 5646
Mostly except we keep support for some older constructs and
don't implement extension or privateuse. It's messy because
it's used mostly by XSD datatype which itself reference RFC 3066
and suggests a lexical space completely different from what
5646 defines.
|
|
91d239c5
|
2010-11-04T12:39:18
|
|
617468 fix progressive HTML parsing with style using "'"
Style and script can contain ',"". This patch fixes call
htmlParseLookupSequence with set flag 'ignoreattrval' to
ignore this char
|
|
f99d2223
|
2010-11-04T12:08:08
|
|
614087 Fix Socket API usage to allow Windows64 compilation
In Windows 64 a socket is no more represented by an int,
this breaks the nanoftp API and nanoftp/nanohttp, the patch
changes this and fix the API for Win64
Regenerated the XML and documentation as a result too.
|
|
ce5f9a7d
|
2010-11-04T10:48:25
|
|
616478 Fix xmllint shell write command
The current node wasn't passed down !
|
|
d4b54471
|
2010-11-04T10:18:17
|
|
614005 Possible erroneous HTML parsing on unterminated script
Fix a nasty error handling problem when an error happen at the
end of the input buffer.
|
|
37072b75
|
2010-11-04T09:56:39
|
|
618831 don't ship generated files in git
remove INSTALL config.h.in install-sh missing
|
|
64b0d60c
|
2010-11-04T09:43:31
|
|
Switch from the obsolete mkinstalldirs to AC_PROG_MKDIR_P
This was obsoleted in 2005 so we should be safe.
But keep AC_PREREQ to 2.59 as it's still widely deployed.
|
|
c84e863c
|
2010-11-03T21:05:18
|
|
627987 Fix XSD IDC errors in imported schemas
Fix XSD IDC references when xsi:schemalocation is used for
referencing the validation schemas
|
|
ee32ad3c
|
2010-11-03T20:53:55
|
|
629325 XPath rounding errors first cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=629325
not a full solution as Vincent Lefevre pointed out but
an incremental improvement over the status-quo
|
|
ad4f0a2d
|
2010-11-03T20:40:46
|
|
630140 better fix for iso995x encoding error
Changing semantic of xmlCharEncInFunc() wasn't the proper way to
do this, better change UTF8ToISO8859x() appropriately
|
|
1cc912ec
|
2010-11-03T19:26:35
|
|
Various cleanups on encoding handling
Done while chasing previous bug
|
|
083caf5e
|
2010-11-03T19:24:05
|
|
630140 fix iso995x encoding error
https://bugzilla.gnome.org/show_bug.cgi?id=630140
Fix the bug, which happen when using the embedded converters and
not iconv
|
|
e306260f
|
2010-11-03T16:10:26
|
|
Fix compilation with Clang
Don't redefine vsnprintf if it is available
|
|
d2e62311
|
2010-11-03T15:33:40
|
|
Add xmlSaveOption XML_SAVE_WSNONSIG
non destructive indentation option using spaces within markup
constructs and hence not modifying content
* include/libxml/xmlsave.h: new option
* xmlsave.c: some refactoring and new code for the new option
* xmllint.c: adds --pretty option where option 2 uses the new formatting
|
|
5f9d9ceb
|
2010-11-01T14:27:11
|
|
Fix xmllint to use format=1 for default formatting
* xmllint.c: again the goal is ultimately to use other values for
a different semantic.
|
|
8b877135
|
2010-11-01T14:24:56
|
|
Force _xmlSaveCtxt.format to be 0 or 1
* xmlsave.c: force _xmlSaveCtxt.format to be 0 or 1 and check
accordingly, this will allow other values of "format" to be used
for other purposes.
|
|
e6ad10a5
|
2010-11-01T11:35:14
|
|
Cleanup encoding pointer comparison
* parser.c: Compare encoding pointer with a NULL instead of
xmlCharEncoding enum value 0 then casted to char * !
|
|
8ad2930f
|
2010-10-28T11:51:22
|
|
make sure htmlCtxtReset do reset the disableSAX field
As pointed out by Stefan Behnel <stefan_ml@behnel.de>
|
|
ea90b894
|
2010-10-22T15:50:50
|
|
Fix a change of semantic on XPath preceding and following axis
This was introduced in the prevous fix, while preceding-sibling and
following sibling axis are empty for attributes and namespaces,
preceding and following axis should still work based on the parent
element. However the parent element is not available for a namespace
node, so we keep the axis empty in that case.
|
|
e6f05099
|
2010-10-15T19:50:03
|
|
Fix a potential segfault due to weak symbols on pthreads
In xmlInitParser, both __xmlGlobalInitMutexLock and xmlInitGlobals are
called before xmlInitThreads, and both use pthread symbols.
__xmlGlobalInitMutexLock does so directly, without checking if the symbol
exists, and xmlInitGlobals calls xmlNewMutex, which correctly depends on
libxml_is_threaded... except libxml_is_threaded is still -1 by then...
And again, when releasing the global mutex in __xmlGlobalInitMutexUnlock,
the pthread function is called directly.
The patch changes the initialization order and make sure the functions
are available before calling them
|
|
3c79510d
|
2010-10-15T18:50:41
|
|
Fix devhelp documentation installation
When doing an out of tree build
|
|
10455bb4
|
2010-10-15T18:39:50
|
|
Sort python generated stubs
to avoid shuffling each time python changes or on different
architectures
|
|
2f3523f6
|
2010-10-15T18:30:29
|
|
Fix a leak in XPath compilation
Sometimes a not well formed XPath expression could lead to a
leak as reported by Ralf Junker <ralfjunker@gmx.de>
|
|
91d19754
|
2010-10-15T14:30:52
|
|
Fix the semantic of XPath axis for namespace/attribute context nodes
The processing of namespace and attributes nodes was not compliant
to the XPath-1.0 specification
|
|
c43ac669
|
2010-10-14T14:27:54
|
|
Avoid a descriptor leak in catalog loading code
File descriptors could be leaked in xmlLoadFileContent()
|
|
2ddecc23
|
2010-10-12T09:09:07
|
|
Fix a small bug in XPath evaluation code
|
|
d2190faf
|
2010-09-30T13:58:22
|
|
Fix web site encoding problems
The encoding.html page was generated incorectly, revamp the input
xml.html and convert the full XSLT chain to use and serve it as
UTF-8
* doc/*: fix xml.html, update all stylesheets and regenerate
|
|
aa54d37c
|
2010-09-09T18:17:47
|
|
Fix handling of XML-1.0 XML namespace declaration
Usually 'xml' namespace for XML-1.0 declaration does not need
to be carried but Mike Hommey raised the problem that the SVG
XSD file fails to parse due to a mishandling.
- SAX2.c: failure to create a namespace should not be interpreted
as a memory allocation error
- tree.c: document better xmlNewNs behaviour, and fix it in the
case the 'xml' prefix is being used.
|
|
af58ee13
|
2010-08-02T13:43:28
|
|
Fix a couple of typo in HTML parser error messages
|
|
1ea95900
|
2010-07-28T14:49:55
|
|
Small code cleanup on previous patch
suggested by Andrew Nosenko
|
|
5f8f5e7a
|
2010-07-28T11:41:23
|
|
Fix errors in XSD double validation check
- xmlschemastypes.c: "e" and "E" should not be accespted as is, digits
are needed
|
|
f1121c48
|
2010-07-26T14:02:42
|
|
Add an HTML parser option to avoid a default doctype
- include/libxml/HTMLparser.h: defines the new HTML parser option
HTML_PARSE_NODEFDTD
- HTMLparser.c: if option is set don't add a default DTD
- xmllint.c: add the corresponding --nodefdtd option in xmllint
|
|
2ee91eb6
|
2010-06-04T09:14:16
|
|
Fix handling of apos in URIs
François Delyon <f.delyon@satimage.fr> pointed out a divergence between
the URI code and RFC 3986, fix trivial and seems to not break regression
tests
|
|
5b9dde3e
|
2010-05-05T07:59:44
|
|
xmlTextReaderReadOuterXml should handle DTD
* xmlreader.c: fix description of xmlTextReaderReadOuterXml and support DTD
|
|
bdf24b9f
|
2010-04-26T16:09:34
|
|
Autogen.sh needs to create m4 directory
* autogen.sh: create m4 directory if not already existing
|
|
f61ba8d0
|
2010-03-25T10:54:32
|
|
Forgot to update the news page for 0.7.7
|
|
a295fbc4
|
2010-03-19T06:31:55
|
|
Fix Win32 build
* libxml.h win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: add
NOLIBTOOL flag to prevent automatic define of LIBXML_STATIC
|
|
bb5055f3
|
2010-03-15T16:21:00
|
|
Release of libxml2-2.7.7
* configure.in: bump version
* doc//*: regenerated
|
|
06c93b75
|
2010-03-15T16:08:44
|
|
Remove a few warnings
|
|
26b06874
|
2010-03-15T15:59:07
|
|
xmlCtxtResetLastError should reset ctxt->errNo
just fix it !
|
|
3c080d6d
|
2010-03-15T15:47:50
|
|
Don't give default HTML boolean attribute values in parser
* HTMLparser.c: don't default value of HTML boolean attributes in the
parser
* SAX2.c: move this to SAX2 tree building backend
* result/HTML/doc2.htm.sax result/HTML/doc3.htm.sax
result/HTML/wired.html.sax: this changes a few HTML SAX regression
tests
|
|
615904f5
|
2010-03-15T15:16:02
|
|
Switch the HTML parser to be non-recursive
* HTMLparser.c: new htmlParseElementInternal non recursive, with
htmlParseContentInternal and new function to handle node info
and element end.
* include/libxml/parser.h: add new stack for element info in parser
context
* parserInternals.c: fee element info stack
|
|
ef9c636a
|
2010-03-15T11:37:48
|
|
Cleanup a couple of weirdness in HTML parser
|
|
9543aee9
|
2010-03-15T11:13:39
|
|
Fix broken escape behaviour in regexp ranges
|
|
9031709b
|
2010-03-15T10:36:56
|
|
Fix missing win32 libraries in libxml-2.0.pc
The libxml-2.0.pc file doesn't contain the win32 specific libraries. So when
(cross-)compiling for Windows, the output of
pkg-config libxml-2.0 --libs
returns an incompile set of libraries. Thus, applications using libxml2's
network functionality fail to build for the win32 platform.
|
|
12febe86
|
2010-03-15T10:31:24
|
|
Fix detection of python linker flags
python-config has both --libs and --ldflags, and we should use the
later to link the python binding
|
|
38af74f7
|
2010-03-15T10:22:25
|
|
fix build error in libxml2/python
There are missing $(srcdir) values in libxml2/python/Makefile.am which
cause it to fail if built remote from out of tree.
|
|
ba9716a1
|
2010-03-15T10:13:29
|
|
ChunkParser: Incorrect decoding of small xml files
if encoding was autodetected, in xmlParseChunk, if initial size is 86 (a
chunk in UTF-16 encoding), the code that tries to read only the first line
will set the size to 90, which eventually leads to a memmove of 90 bytes
(in xmlBufferAdd) which will copy extra random memory bytes, which will
make the parser to fail because of these extra bytes.
|
|
a7a6a4b2
|
2010-03-15T10:06:36
|
|
relaxng.c: cast to allow compilation with sun studio 11
Sun Studio 11 was failing to compile relaxng.c due to a type mismatch
in a ternary operator used to provide an argument to xmlRngPErr. It
seems that sos11 cc is more pedantic about this part of the C99
standard. GCC issues a warning but doesn't fail by default.
After casting the string literal "nothing" to (const xmlChar *) sos11
cc is happy. GCC no longer issues a warning either.
Another warning was cleaned up with an identical cast.
|
|
f39adc25
|
2010-03-11T14:49:13
|
|
Fix build failure on Sparc solaris
Tries to find the right ld options needed to pass a linker script.
|
|
1e60fbcb
|
2010-03-10T18:10:49
|
|
htmlCheckEncoding doesn't update input-end after shrink
* HTMLparser.c: add the missing update to the end pointer
|
|
9ccea57d
|
2010-03-10T15:02:49
|
|
Fix a missing #ifdef
https://bugzilla.gnome.org/show_bug.cgi?id=611806
Problem raised by Mark Overmeer
|
|
743311bd
|
2010-03-10T10:35:56
|
|
use autoreconf in autogen.sh
* autogen.sh: use autoreconf instead of the direct set of calls for
auto* updates
* INSTALL INSTALL.libxml2: migrate the INSTALL to INSTALL.libxml2 since
autoreconf copies a new INSTALL
|
|
120a2699
|
2010-03-10T10:07:49
|
|
Fix build with mingw
- include/libxml/xmlexports.h: restore export decoration otherwise
xsltproc and xmlsec crash
- libxml.h: define LIBXML_STATIC for static build
- configure.in: enable modules support for mingw* builds
- Makefile.am: flags for testdso if modules support enabled
|
|
3157e515
|
2010-03-09T11:32:46
|
|
Upgrade some of the configure and autogen
Based on Roumen Petrov suggestions
|
|
e4d1849c
|
2010-03-09T11:12:30
|
|
Fix xmlNodeSetBase() comment
|
|
47cd14e8
|
2010-02-04T18:49:01
|
|
Fix encoding selection for xmlParseInNodeContext
* parser.c: use the encoding from the document to parse the chunk
|
|
2f700908
|
2010-02-03T17:32:37
|
|
xmlPreviousElementSibling mistake
* tree.c: xmlPreviousElementSibling it should look for preceding sibling
never for the following ones...
|
|
59df7834
|
2010-02-02T10:24:01
|
|
608773 add a missing check in xmlGROW
* parser.c: check that the input buffer is non null before dereferencing it
|
|
e20fb5a7
|
2010-01-29T20:47:08
|
|
Fix xmlParseInNodeContext for HTML content
xmlParseInNodeContext notices that the enclosing document is
an HTML document, so invoke the HTML parser for that fragment, and
the HTML parser finding a "<p>hello world!</p>" document automatically
augment it with defaulted <html> and <body>. This defaulting should
be turned off in the HTML parser for this to work, but there is no
such HTML parser option. There is an htmlOmittedDefaultValue global
variable that you could use, but really we should not rely on global
variable for processing options anymore, best is to add an
HTML_PARSE_NOIMPLIED.
* include/libxml/HTMLparser.h: add the HTML_PARSE_NOIMPLIED parser flag
* HTMLparser.c: do add implied element if HTML_PARSE_NOIMPLIED is set
* parser.c: add HTML_PARSE_NOIMPLIED to options for xmlParseInNodeContext
on HTML documents
|
|
ddb01cbf
|
2010-01-29T13:32:12
|
|
Fix lost namespace when copying node
* tree.c: reconcile namespace if not found
|
|
c9667907
|
2010-01-22T08:24:25
|
|
Fix relaxNG tests in runtest for Windows
* runtest.c: initialize ret
|
|
f3703105
|
2010-01-22T12:08:00
|
|
Fix a const warning in xmlNodeSetBase
* tree.c: xmlNodeSetName: Remove const from declaration since it is
used non-const anyway. Remove unnecessary cast on xmlFree later on.
|
|
4b41f15d
|
2010-01-20T14:25:59
|
|
Fix some missing commas in HTML element lists
* HTMLparse.c: fix the macros BLOCK and INLINE to use commas and
avoid transparent contatenation of strings
|
|
a7e79f28
|
2010-01-19T16:28:48
|
|
libxml violates the zlib interface and crashes
* xmlIO.c: remove an abuse of zlib API and use a clean interface
available in zlib >= 1.2.3
|