Re: [xml] libxml2 API crazy?

2013-05-03 Thread Daniel Veillard
ays to improve code and people willing to put the effort I will take them though, as it is clearly far from perfect. The documentation unfortunately covers only a small subset of the possible uses, and some of the tricks we are used to but confuse beginners ought to be spelled out :-) Daniel

Re: [xml] libxml2 API crazy?

2013-05-03 Thread Daniel Veillard
r both human and technical reasons (first because the API is confusingly too big already, and second because the resolution of all entry points in ELF shared library may turn quadratic and we are already quite big) Beside that I will hadly say no to anything improving documentation :-) thanks

Re: [xml] C++11 binding for libxml

2013-05-03 Thread Daniel Veillard
iter. Case where an XML document is both read and written concurrently aren't that common, usually the data is converted to an internal structure and then read/write patterns happen, and in the end a serialization. thanks for the pointer ! Daniel -- Daniel Veillard | Open Source and S

Re: [xml] libxml2 2.9.1 and python 2.6.8 (patch)

2013-05-03 Thread Daniel Veillard
ommit/python/libxml_wrap.h?id=bf4a8f0ea8579f05eea2e6f43df73b2a239d41b3 Yeah, I tested only with 3 versions of python and it's best to use the availability of the maxcro than a strict versionning test, thanks, applied ! https://git.gnome.org/browse/libxml2/commit/?id=722923bc9b788f028e4221c77138fc66735

Re: [xml] libxml2 API crazy?

2013-05-03 Thread Daniel Veillard
will review patches if they are sent on this list with explanation of what they are doing. And before rolling dozen of those get feedback on the first ones. Oh and use less incendiary mail subjects, after all my code and API as crazy as they are, I love them (to some extent, lot of this was set up 15+

Re: [xml] Release of libxml2-2.9.1

2013-04-22 Thread Daniel Veillard
s, oversight I'm afraid, can you rebase your patch and send it ? Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library h

[xml] Release of libxml2-2.9.1

2013-04-22 Thread Daniel Veillard
for XPath: Features: - Support for Python3 (Daniel Veillard) - Add xmlXPathSetContextNode and xmlXPathNodeEval (Alex Bligh) Documentation: - Add documentation for xmllint --xpath (Daniel Veillard) - Fix the URL of the SAX documentation from James (Daniel Veillard) - Fix spelling of "l

Re: [xml] Fwd: Cross compile error :: libxml2 for android

2013-04-07 Thread Daniel Veillard
g.c:3397: error: invalid storage class for function > 'ISO8859_3ToUTF8' never seen that, what version of libxml2 are you trying to compile ? > I have attached my Android make file . Can some body through light on how > to to proceed further . > > android.mk<https://d

Re: [xml] xmlReader: Possibility for cloning an xmlTextReader (or multi-pass reading)

2013-04-07 Thread Daniel Veillard
assuming data comes from disk (network is a completely separate problem you can't guarantee reproduceability of reads) then the main factor is reading the data from the disk, once it is in the cache, the second parse is way faster if you don't wait between the two passes. Daniel

Re: [xml] Strange validation errors in libxml 2.9.0 with MSVC 2010

2013-04-06 Thread Daniel Veillard
nd why, I can't guess and I can't test, simply run your program under a debugger, since you have a reliable behaviour ! Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | vir

Re: [xml] Fwd: Support of new HTML5 tags in libxml

2013-04-02 Thread Daniel Veillard
hose additions, but I definitely take patches ! In the meantime you can catch those specific errors and discard them. Since HTML 5 is no in Candidate REC at W3C I hope someone will have the time to help on fixing this in the next months, Daniel -- Daniel Veillard | Open Source and Standards, Red

Re: [xml] XPath on a subtree

2013-04-01 Thread Daniel Veillard
ompile and run fine with python 2.4, 2.7 and 3.2 in my tests, thanks ! Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvi

Re: [xml] XPath on a subtree

2013-04-01 Thread Daniel Veillard
On Sun, Mar 31, 2013 at 07:47:34PM +0300, Roumen Petrov wrote: > Daniel Veillard wrote: [...] > > Those are non-standard practices of libxml2 development > >and I reused them into libxslt and libvirt :-) > > Ok but for instance NEWS file is one of autogenerated docume

Re: [xml] XPath on a subtree

2013-04-01 Thread Daniel Veillard
On Sun, Mar 31, 2013 at 06:44:44PM +0800, Daniel Veillard wrote: > On Sat, Mar 30, 2013 at 07:11:35PM +, Alex Bligh wrote: > > > BTW the xml is generated so that should be discarded from the > > > patch, > > > > That's strange. It appears in git and has

Re: [xml] XPath on a subtree

2013-03-31 Thread Daniel Veillard
roject, so what you see online reflects the documentation for what is foudn in git, and what you see on your hard drive (if you installed the developments bits) is what corresponds to your released version. Those are non-standard practices of libxml2 development and I reused them into libxslt and libvirt :

Re: [xml] xmlReader: Possibility for cloning an xmlTextReader (or multi-pass reading)

2013-03-30 Thread Daniel Veillard
On Sat, Mar 30, 2013 at 08:57:55PM +0100, Martin B. wrote: > On 30.03.2013 16:35, Daniel Veillard wrote: > >On Sat, Mar 30, 2013 at 08:02:38AM +0100, Martin B. wrote: [...] > But as far as I can grasp this, an xmlTestReader is just an > "object", encapsulating access to an

Re: [xml] XPath on a subtree

2013-03-30 Thread Daniel Veillard
On Sat, Mar 23, 2013 at 05:24:11PM +, Alex Bligh wrote: > > On 23 Mar 2013, at 14:23, Daniel Veillard wrote: > > > Do you mind doing a patch ? :-) > > Done. Please ignore the two bogus ones with the function name > duplicated in the commit message. I blame insuffici

Re: [xml] xmlReader: Possibility for cloning an xmlTextReader (or multi-pass reading)

2013-03-30 Thread Daniel Veillard
t won't work on the reader as most of the tree is discarded. You will iterate on the Read() though, assuming you don't do other progress operations, just count them, and then when going through the second time run a loop with the same number of Read() you should be at the same place if th

Re: [xml] How to override SystemID in xmlReader?

2013-03-28 Thread Daniel Veillard
added to libxml itself (as new reader constructors)? Hum, catalogs are done exactly for this: http://xmlsoft.org/catalog.html otherwise just override the I/O handling something along the lines of what is presented in: http://xmlsoft.org/examples/index.html#io1.c Daniel -- Daniel Veillard

Re: [xml] XPath on a subtree

2013-03-23 Thread Daniel Veillard
On Sat, Mar 23, 2013 at 02:10:42PM +, Alex Bligh wrote: > > On 23 Mar 2013, at 13:54, Daniel Veillard wrote: > > > I though I had added a macro but searched for it an no it's not there. > > In the python bindings there is an extra function called > > >

Re: [xml] XPath on a subtree

2013-03-23 Thread Daniel Veillard
On Sat, Mar 23, 2013 at 12:09:25PM +, Alex Bligh wrote: > Daniel, > > On 23 Mar 2013, at 11:52, Daniel Veillard wrote: > > > ctxt->node = node; actually it's good to set the doc too at that point before reusing the context in the loop. ctxt->doc = d

Re: [xml] XPath on a subtree

2013-03-23 Thread Daniel Veillard
first XPath query, then create a new XPath context for the document (do not reuse the old one there) and then for each node in you node set from the first query do ctxt->node = node; res = xmlXPathEval("./foo..", ctxt); ... of course the subtree query will have to be relat

Re: [xml] Broken link

2013-03-22 Thread Daniel Veillard
bxml-sax/libxml-sax.html I just pushed the update, Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

Re: [xml] How to find the End of the SOAP XML BODY

2013-03-15 Thread Daniel Veillard
ople are still doing the same basic mistakes. Daniel > how > to identity the End of a XML body. > > Thanks, > Venkat. > ___ > xml mailing list, project page http://xmlsoft.org/ > xml@gnome.org > https://mail.gnome.org/m

Re: [xml] Regarding creating soap message using libxml2

2013-03-15 Thread Daniel Veillard
without the XML version tag. ie without " > ". with the xmlSave APIs, yes http://xmlsoft.org/html/libxml-xmlsave.html Use the XML_SAVE_NO_DECL http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveOption and make sure to not indicate encoding so that the output is UTF-8 Daniel -- Dani

Re: [xml] How to retrieve filename from xmlTextWriter

2013-03-14 Thread Daniel Veillard
d register your own I/O layer for file access and store that filename as part of the returned context used by your own I/O routines. Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.c

Re: [xml] Cross compiling in QNX

2013-03-12 Thread Daniel Veillard
-Wmissing-prototypes > > -Wnested-externs -Winline -Wredundant-decls -Wno-long-long -o .libs/xmllint > > xmllint.o ./.libs/libxml2.so -lz -lm -lsocket > > C:/QNX650/host/win32/x86/usr/bin/ntox86-ld.exe:./.libs/libxml2.so: file > > format not

Re: [xml] Old bug in xmlSchemaValidateOneElement function

2013-03-12 Thread Daniel Veillard
validity error : Element '{urn:ietf:params:xml:ns:pidf}presence': No matching global declaration available for the validation root. and indeed the RFC uses that schemas but doesn't define or reference it. Do you have a simpler example which would be usable as a reproducing test c

Re: [xml] Adding a new element into existing xml

2013-03-12 Thread Daniel Veillard
ml#xpath2.c http://xmlsoft.org/html/libxml-tree.html Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/ _

Re: [xml] [PATCH v2] libxml2 Fix configure cannot remove messages

2013-03-12 Thread Daniel Veillard
100644 > > --- a/configure.in > > +++ b/configure.in > > @@ -62,7 +62,6 @@ AC_PROG_INSTALL > > AC_PROG_LN_S > > AC_PROG_MKDIR_P > > AC_PROG_CPP > > -AC_PATH_PROG(RM, rm, /bin/rm) > > AC_PATH_PROG(MV, mv, /bin/mv) > > AC_PATH_PROG(TAR, tar, /bin/t

Re: [xml] Disable external entity processing

2013-03-05 Thread Daniel Veillard
DTD when referencing a parameter entity in the internal subset, annoying. I suggest you add the XML_PARSE_NONET option when creating the parser as a first measure. It will still check in the /etc/xml/catalog to find if there is a local resource in the catalog for the referenced URI but it wi

Re: [xml] What does it mean if I get an XML_NODESET with nodesetval == NULL?

2013-03-03 Thread Daniel Veillard
selinux']/label Object is a Node Set : Set contains 1 nodes: 1 ELEMENT label / > xpath /domain/seclabel[@model='selinux']/imagelabel Object is a Node Set : Set contains 1 nodes: 1 ELEMENT imagelabel / > Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@

Re: [xml] Possible bug with schema validation in combination with xsi:nil

2013-02-28 Thread Daniel Veillard
On Thu, Feb 28, 2013 at 01:43:47PM +0100, Thomas Gamper wrote: > Am 28.02.2013 12:07, schrieb Daniel Veillard: > >On Fri, Feb 08, 2013 at 02:04:34PM +0100, Thomas Gamper wrote: [...] > >>So, attached you find a patch diffed against git master which fixes > >>the issue

Re: [xml] Possible bug with schema validation in combination with xsi:nil

2013-02-28 Thread Daniel Veillard
I don't know XSD very well but that seems to make sense. However running the regression tests, "make check" now reports: ## Schemas regression tests Result for ./test/schemas/bug323510_0.xml on ./test/schemas/bug323510_1.xsd failed File ./test/schemas/bug323510_1.xsd generated an er

Re: [xml] HTML fix callbacks

2013-02-28 Thread Daniel Veillard
or handler, you could catch those for example, but there isn't anything specific dedicated at "recovery", Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualizati

Re: [xml] xmlCtxtReadFile and IPv6

2013-02-28 Thread Daniel Veillard
ets from the uri->server value, and > > allows > > the sample program to execute without error. Okay, understood, I hardened your patch a bit, and pushed it, http://git.gnome.org/browse/libxml2/commit/?id=19d785b5c76fcd9d7bc2c8d678b05ed83b02f91d thanks ! Danie

Re: [xml] [PATCH] Python bindings: DOM casts everything to xmlNode

2013-02-26 Thread Daniel Veillard
On Tue, Feb 26, 2013 at 12:00:56AM -0800, Alexey Neyman wrote: > On Monday, February 25, 2013 04:14:07 PM Daniel Veillard wrote: > > Okay, applied and pushed both. Could you just patch the test to make > > it silent like all other cases under python/tests if it works correctly.

Re: [xml] [PATCH] Python bindings: DOM casts everything to xmlNode

2013-02-25 Thread Daniel Veillard
On Sat, Feb 23, 2013 at 04:09:44PM -0800, Alexey Neyman wrote: > On Friday, February 22, 2013 08:05:51 PM Daniel Veillard wrote: > > On Fri, Feb 22, 2013 at 12:11:33AM -0800, Alexey Neyman wrote: [...] > Updated patch, with a new test case, attached. > > Also, I split the fixes

Re: [xml] [PATCH] Python bindings: DOM casts everything to xmlNode

2013-02-22 Thread Daniel Veillard
On Fri, Feb 22, 2013 at 12:11:33AM -0800, Alexey Neyman wrote: > [Adding back the list - I accidentally hit "reply" instead of "reply all" in > previous email] > > On Friday, February 22, 2013 01:38:51 PM Daniel Veillard wrote: > > [sending again since mai

Re: [xml] [PATCH] Python bindings: DOM casts everything to xmlNode

2013-02-21 Thread Daniel Veillard
d to any compatibility problem, it is a guaranteed improvement ! > Patch attached. Applied and pushed, thanks ! Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtua

Re: [xml] xmlTextReader and parseChunk

2012-12-20 Thread Daniel Veillard
On Thu, Dec 20, 2012 at 01:09:03PM +0100, Alexandre Bique wrote: > On Thu, Dec 20, 2012 at 6:30 AM, Daniel Veillard wrote: > > On Fri, Dec 14, 2012 at 11:22:37AM +0100, Alexandre Bique wrote: > >> Hi, > >> > >> I would like to know if it is possible t

Re: [xml] xmlTextReader and parseChunk

2012-12-19 Thread Daniel Veillard
tags for example). The programming model of the reader is way simpler, but it assumes a synchronous input. Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library

Re: [xml] [PATCH] Fix for win32/configure.js and WITH_THREAD_ALLOC

2012-12-12 Thread Daniel Veillard
, "0")); > } else if (s.search(/\@WITH_FTP\@/) != -1) { > of.WriteLine(s.replace(/\@WITH_FTP\@/, withFtp? "1" : > "0")); > } else if (s.search(/\@WITH_HTTP\@/)

Re: [xml] xmlTextReader and parsing namespace with relative URI

2012-12-12 Thread Daniel Veillard
On Wed, Dec 12, 2012 at 09:34:20AM +0100, Frank Gross wrote: > Hi, > > Thanks, for your answer. The patch solved my issue. Yeah, surprized that such a big bug wasn't detected earlier ! Will be in next release though :-) Daniel -- Daniel Veillard | Open Source and Stan

Re: [xml] xmlTextReader and parsing namespace with relative URI

2012-12-11 Thread Daniel Veillard
ors) ctxt->errNo); +if (ctxt->wellFormed == 0) + return((xmlParserErrors) ctxt->errNo); +else +return(0); } /******** Unfortunately I don't see any workaround beside applying that patch :-\ Daniel

Re: [xml] Solaris EBDIC patch

2012-12-11 Thread Daniel Veillard
plying attached patch file. > > Can something like this be committed into main libxml2 repo? Yup, makes sense, pushed with an bit of context in the commit log: http://git.gnome.org/browse/libxml2/commit/?id=6f49c73b53facc1c22c82dc2599f4a24bb7141b5 thanks ! Daniel -- Daniel Veillard

Re: [xml] resolveEntity and SAX

2012-11-16 Thread Daniel Veillard
gainst: http://xmlsoft.org/xmlreader.html Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

Re: [xml] resolveEntity and SAX

2012-11-15 Thread Daniel Veillard
ere is no convenient APIs for doing this, SAX processing and entities handling are difficult to handle properly. Unless you really have existing code relying on SAX, I really suggest to instead look at using the Reader API, Daniel -- Daniel Veillard | Open Source and Standards, Red Hat vei

Re: [xml] Error on first page of http://www.xmlsoft.org/

2012-11-08 Thread Daniel Veillard
les. everything seems to point out back to http://www.oasis-open.org/committees/xml-conformance/ which then 404's ... looks alike a problm on OASIS side to be honnest Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSL

Re: [xml] Localizing the validation messages

2012-11-08 Thread Daniel Veillard
libxml2. The structured error handler should give you everything you need to implement your own localization. I'm not sure I want to do this in libxml2, due to dependencies, portability and the fact that it's a developper toolkit, not the right level to emit user level messages. Daniel -

Re: [xml] (Broken) multi-arch support in xml2-config

2012-11-08 Thread Daniel Veillard
On Thu, Nov 08, 2012 at 03:15:28AM -0500, Daniel Richard G. wrote: > On Thu, 8 Nov 2012, Daniel Veillard wrote: > > >>What was the motivation for trying to shoehorn multi-arch > >>support into xml2-config? > > > >Avoid keeping a distro specific patch, assuming

Re: [xml] (Broken) multi-arch support in xml2-config

2012-11-07 Thread Daniel Veillard
would do then is set my PATH appropriately, e.g. > > PATH=/usr/arch/x86_64-linux-gnu/bin:/usr/bin > > or > > PATH=/usr/arch/i386-linux-gnu/bin:/usr/bin > > when LibXML2 is installed for both amd64 and i386 under /usr/arch/. > > > What was the motivatio

Re: [xml] xpath treatment of absent nodes

2012-11-06 Thread Daniel Veillard
On Tue, Nov 06, 2012 at 10:48:30AM +, Alex Bligh wrote: > Daniel, > > On 6 Nov 2012, at 08:35, Daniel Veillard wrote: > > > So clearly /usr/bin/xpath which is apparently coming from Perl > > has a bug. Be careful with comparison operators on XPath node sets >

Re: [xml] xpath treatment of absent nodes

2012-11-06 Thread Daniel Veillard
;t be a node in that set where the cast would be true so the test has to fail, and the last bar child must not be selected. So clearly /usr/bin/xpath which is apparently coming from Perl has a bug. Be careful with comparison operators on XPath node sets they don't alway obbey to standard expectat

Re: [xml] Namespace errors with XML fragement parsed by XMLReader

2012-11-01 Thread Daniel Veillard
ocesing should continue and return 0 as the error instead of the actual error. If you could try against one of the snapshot tarballs, that would be helpful, Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlso

Re: [xml] xmlHashAddEntry/xmlHashScan behaviour

2012-10-30 Thread Daniel Veillard
On Wed, Oct 31, 2012 at 09:22:17AM +0300, Nikolay Sivov wrote: > On 10/31/2012 08:09, Daniel Veillard wrote: > >On Wed, Oct 31, 2012 at 08:45:35AM +0300, Nikolay Sivov wrote: > >>Hi, > >> > >>Got a question on libxml2 hash implementation. > >>Let'

Re: [xml] namespace error while parsing an xml(not a valid UR)

2012-10-30 Thread Daniel Veillard
ng which is based on an exact string match of the namespace name. I hope I didn't get that wrong ! You may filter it out if you want, just catch it and ignore it. Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolk

Re: [xml] xmlHashAddEntry/xmlHashScan behaviour

2012-10-30 Thread Daniel Veillard
ry for item3 > > Is it wrong assumption to expect xmlHashScan calling back exactly in > same order as I added these entries? It is a wrong assumption. You can't expect any specific order back from xmlHashScan() callbacks. Daniel -- Daniel Veillard | Open Source and Standards, Red

Re: [xml] calling xmlCleanupParser from a library considered harmful

2012-10-30 Thread Daniel Veillard
On Tue, Oct 30, 2012 at 07:12:41AM +, Alex Bligh wrote: > > On 30 Oct 2012, at 02:07, Daniel Veillard wrote: > > > Opinions about this ? > > One issue is that for library authors there is no safe way of making > your library not introduce reported valgrind leakage in

Re: [xml] [PATCH] Fix spelling of "length"

2012-10-29 Thread Daniel Veillard
rowse/libxml2/commit/?id=459eeb9dc752d5185f57ff6b135027f11981a626 > > The attached patch fixes this typo throughout the tree. Hehe, I know i used to make that typo a lot :-) http://git.gnome.org/browse/libxml2/commit/?id=fb27e2cd204ddb2cb0163b4b6418cc494889d279 Applied and pushed, thanks a lot ! Daniel -- Daniel V

Re: [xml] [PATCH] Server side includes (again)

2012-10-29 Thread Daniel Veillard
but your patch didn't apply to git head (even after removing all the spurious \r due to your Windows environment), I started looking at what was going on, but got interrupted. You could help by reposing a rebased, cleaned up version of the patch which actually applies to the git code base :-)

Re: [xml] Question about security implications around external entities

2012-10-29 Thread Daniel Veillard
external entities. The 2 cases where it would is if DTD loading/entites replacement is asked for, or if XInclude processing is activated. hope this clarifies the situation, please check with 2.9.0 and report :-) Daniel -- Daniel Veillard | Open Source and Standards,

Re: [xml] calling xmlCleanupParser from a library considered harmful

2012-10-29 Thread Daniel Veillard
LF platforms) so the next time the problem is > easier to detect: > > http://cgit.freedesktop.org/libreoffice/core/commit/?id=d68113f3229d0ec8c84f77dcac3b64a3fd7e03e4 > > regards, > michael > > [1] pedantic note: technically at the first time it was OpenOffice.org Hum, I

Re: [xml] [bug] external subset ignored by 2.9.0 when parsing in incremental mode

2012-10-29 Thread Daniel Veillard
e/libxml2/commit/?id=a7982ce272016182afafb6f74f3b312c6e5f7faf so it's fixed in git, and should be fixed in 2.9.1, Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | vir

Re: [xml] status of xmlBufEnd() and xmlBufContent()

2012-10-29 Thread Daniel Veillard
api See doc/symbols.xml for an official version of the public symbols in libxml2, the version they were added in (and in rare occasions removed), this may help you generate corrects symbol files for your linker, Daniel -- Daniel Veillard | Open Source and Standards, Red Hat v

Re: [xml] status of xmlBufEnd() and xmlBufContent()

2012-10-29 Thread Daniel Veillard
testapi thinkpad:~/XML -> grep -C4 xmlBufContent libxml2.syms LIBXML2_2.9.0 { global: # tree xmlBufContent; xmlBufEnd; xmlBufGetNodeContent; xmlBufNodeDump; xmlBufShrink; thinkpad:~/XML -> yes they are, added in 2.9.0, Daniel -- Daniel Veillard | Open Source and

Re: [xml] missing SAX1 support without giving --without-sax1

2012-10-29 Thread Daniel Veillard
On Mon, Oct 29, 2012 at 10:22:25AM +0100, Petr Sumbera wrote: > Dne 29.10.12 07:18, Daniel Veillard napsal(a): > >On Fri, Oct 26, 2012 at 04:51:15PM +0200, Petr Sumbera wrote: [...] > --- libxml2-2.9.0/configure.in.~1~ Mon Sep 10 20:52:46 2012 > +++ libxml2-2.9.0/configure.in

Re: [xml] configure problem with version 2.9.0 on solaris

2012-10-28 Thread Daniel Veillard
PT_FLAGS="-Wl,-M -Wl,";; > + *-*-solaris*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";; > esac > fi > AC_SUBST(VERSION_SCRIPT_FLAGS) Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veill...@redhat.com | libxml Gnome XML XSLT toolkit http://xmlso

[xml] Tempted by a 2.9.1 release sometime soon

2012-10-28 Thread Daniel Veillard
Between the portability problem of 2.9.0 on the thread.c module and various parser fixes following the big changes of 2.9.0 I think making a release within a couple of weeks makes sense. Is there any specific issue not currently fixed in git which would need attention ? Daniel -- Daniel

Re: [xml] missing SAX1 support without giving --without-sax1

2012-10-28 Thread Daniel Veillard
else WITH_SAX1=1 TEST_SAX=SAXtests fi AC_SUBST(WITH_SAX1) AM_CONDITIONAL(WITH_SAX1_SOURCES, test "${WITH_TRIO}" = "1") AC_SUBST(TEST_SAX) I would guess the AM_CONDITIONAL should test WITH_SAX1 there not WITH_TRIO. Could you try to make the change and see i

Re: [xml] man pages have "$Date$" instead of real date

2012-10-25 Thread Daniel Veillard
ver get that far. > > See http://www.cs.utah.edu/dept/old/texinfo/cvs/cvs_16.html for an > explanation of how CVS is supposed to use these strings. yeah, that comes from doc/xmlcatalog_man.xml $Date$ this was written nearly a decade ago, at the time we were using CVS so this was w

Re: [xml] xpath evaluation timeout

2012-10-20 Thread Daniel Veillard
ried with 2.9.0 ? There was a specific huge optimization for this, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library htt

Re: [xml] libxml2 equivalents for expat's XML_GetCurrentByteIndex and XML_GetCurrentByteCount

2012-10-19 Thread Daniel Veillard
On Fri, Oct 19, 2012 at 04:57:14PM +0200, Graham Leggett wrote: > On 19 Oct 2012, at 5:20 AM, Daniel Veillard wrote: > > >> The docs say "This function provides the current index of the parser > >> relative to the start of the current entity.", when it says

Re: [xml] libxml2 equivalents for expat's XML_GetCurrentByteIndex and XML_GetCurrentByteCount

2012-10-18 Thread Daniel Veillard
On Thu, Oct 18, 2012 at 06:19:31PM +0200, Graham Leggett wrote: > On 18 Oct 2012, at 6:07 PM, Daniel Veillard wrote: > > > See xmlByteConsumed() but it's more complex for us than for expat > > as we convert the initial byte stream to UTF-8 if it was in a differen

Re: [xml] libxml2 equivalents for expat's XML_GetCurrentByteIndex and XML_GetCurrentByteCount

2012-10-18 Thread Daniel Veillard
ex for us than for expat as we convert the initial byte stream to UTF-8 if it was in a different encoding. See the xmlByteConsumed() code. I don't understand what "the length of the element" is supposed to mean. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://

Re: [xml] An xmlXPathTypeVal is never equal to XML_NAMESPACE_DECL

2012-09-25 Thread Daniel Veillard
ill silent Clang, but the semantic should be exactly the same (as far as I know equality is transitive even in C :-) I'm pushing the change, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.ne

Re: [xml] [PATCH] Windows build fixes

2012-09-17 Thread Daniel Veillard
quot;make check" suite of tests to the MSVC makefile, and also > fixes the following (MSVC7.1) warnings: > > buf.c(674) : warning C4028: formal parameter 1 different from declaration > libxml2\timsort.h(71) : warning C4028: formal parameter 1 different from > declaration &g

Re: [xml] Dramatic performance gains with Libxml

2012-09-17 Thread Daniel Veillard
ll involved! Thanks ! Just by curiosity, what version of libxml2, is the data large and what platform are you using ? Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http:/

Re: [xml] 2.9.0 performance regression

2012-09-17 Thread Daniel Veillard
L file on a tmpfs partition, to reduce I/O impact, however the performance > relation between the commit ids was unchanged. > > Has anyone run into this before? No, nobody complained so far, you're the first :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolki

Re: [xml] Would you tell me how to fix this libxml2 problem? Thank you very much.

2012-09-16 Thread Daniel Veillard
ode after installation 1 > Softwareinstallation failed > Softwareis now in partially installed state Strange ... try to make sure you have autoconf and automake packages installed on the machine where you rebuilt from the source rpm Also grab 2.9.0 since it's out, maybe the problem wi

Re: [xml] patch to libxml2-2.9.0/threads.c

2012-09-13 Thread Daniel Veillard
t; (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL)) > if (globalkey != TLS_OUT_OF_INDEXES) { > xmlGlobalStateCleanupHelperParams *p; > That looks fine to me, I'm temped to push this if there is no disagreement. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://

Re: [xml] [PATCH] Fix typos in parser comments

2012-09-13 Thread Daniel Veillard
*/ > ctxt->nbentities++; Ah, right, pushed ! thanks Jan ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.o

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-12 Thread Daniel Veillard
On Wed, Sep 12, 2012 at 10:13:23PM -0400, Daniel Richard G. wrote: > On Wed, 12 Sep 2012, Daniel Veillard wrote: > > >>The value of INPUT_CHUNK in include/libxml/parserInternals.h: Is > >>it valid/legal to crank this value up? Like, say, from 250 to > >>25?

Re: [xml] How to use XPath to retrieve the "leaf" item?

2012-09-12 Thread Daniel Veillard
ote that the XPath data model expect text and CDATA nodes to be merged, so when you parse XML for XPath consumption you should give the XML_PARSE_NOCDATA flag to be sure you will get the result intended by the spec. Another simpler solution is just the XPath expression "string(/tab

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-12 Thread Daniel Veillard
On Wed, Sep 12, 2012 at 05:12:43PM -0400, Daniel Richard G. wrote: > On Wed, 12 Sep 2012, Daniel Veillard wrote: > > > I could try to put Ubuntu on a VM too and see what is going on. > >Did you manage to isolate what specific test is failing, doing the > >same through x

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-12 Thread Daniel Veillard
ntil/unless I can get > a better handle on it :-( I could try to put Ubuntu on a VM too and see what is going on. Did you manage to isolate what specific test is failing, doing the same through xmllint command line test might be easier to debug, Daniel -- Daniel Veillard | lib

[xml] Release of libxml2-2.9.0

2012-09-11 Thread Daniel Veillard
76544 - fails to build with --without-sax1 (Akira TAGOH) - fix builds not having stdint.h (Rob Richards) - GetProcAddressA is available only on WinCE (Daniel Veillard) - More updates and cleanups on autotools and Makefiles (Daniel Richard G) - More changes for Win32 compilation (Eric Zurcher) -

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-10 Thread Daniel Veillard
else reproduce this, using the patch? Really I tried again today to make sure, and even with an out of tree build and your patch applied, it just work as expected for me on Fedora 17 x86_64, thinkpad:~/tmp/build -> ./runtest ## Error cases regression tests Total 11 tests, no errors thinkpad:~/

Re: [xml] Release candidate 2 of libxml2-2.9.0

2012-09-10 Thread Daniel Veillard
On Fri, Sep 07, 2012 at 03:26:36PM +0200, Csaba Raduly wrote: > On Fri, Sep 7, 2012 at 2:04 PM, Daniel Veillard wrote: > > I have just tagged the git tree and pushed tarballs and rpms to > > ftp://xmlsoft.org/libxml2/ > > > (snip) > > I still have one issu

[xml] Release candidate 2 of libxml2-2.9.0

2012-09-07 Thread Daniel Veillard
de to use the option to get back to the old behaviour, I still have one issue left which is the error that Daniel is seeing and I didn't yet reproduce, but we're on our way for a release next week. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan.

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-07 Thread Daniel Veillard
On Fri, Sep 07, 2012 at 03:22:13PM +0800, Daniel Veillard wrote: > On Fri, Sep 07, 2012 at 01:32:38AM -0400, Daniel Richard G. wrote: [...] > > Failing that, may I ask what system environment you're using to > > test? At this point, I'm willing to set up a virtu

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-07 Thread Daniel Veillard
On Fri, Sep 07, 2012 at 01:32:38AM -0400, Daniel Richard G. wrote: > On Fri, 7 Sep 2012, Daniel Veillard wrote: > > > I went back and applied this to the current git head, and it > >doesn't reproduce anymore. So maybe it was fixed since then, as a > >result I pulled 2

Re: [xml] [PATCH] support long path names on WNT

2012-09-06 Thread Daniel Veillard
it's weird let's keep it. i cleaned up the code and pushed this, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://li

Re: [xml] runtest mystery bug: name2.xml error case regression test

2012-09-06 Thread Daniel Veillard
ng the patch? I went back and applied this to the current git head, and it doesn't reproduce anymore. So maybe it was fixed since then, as a result I pulled 2.8.0, applied your patch, and nope that doesn't reproduce for me either :-\ Do you still see the

Re: [xml] Creation of several tickets related to memory corruptions in libxslt

2012-09-06 Thread Daniel Veillard
roposed some patches (that I didn't test > for the moment). Many thanks to him! Okay, everything seems resolved in git head for both project now, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind

Re: [xml] Relaxed entities encoding for html output

2012-09-04 Thread Daniel Veillard
really less disruptive. With that approach no other test case in libxml2 or libxslt fails. So I commited that restricted approach but which should handle the cases you raise. http://git.gnome.org/browse/libxml2/commit/?id=7d4c529a334845621e2f805c8ed0e154b3350cec thinkpad:~/XSLT ->

Re: [xml] xmlXPathNodeSetSort performance

2012-09-03 Thread Daniel Veillard
On Fri, Aug 24, 2012 at 09:48:37AM +, Vojtech Fried wrote: > -Original Message- > From: Daniel Veillard [mailto:veill...@redhat.com] > Sent: 24. srpna 2012 11:02 > Subject: Re: [xml] xmlXPathNodeSetSort performance > > Took a bit of time but I have included this in

Re: [xml] open libxml2 crash bugs in lxml's bug tracker

2012-09-03 Thread Daniel Veillard
On Mon, Aug 27, 2012 at 04:27:42PM +0800, Daniel Veillard wrote: > On Mon, Jul 02, 2012 at 10:49:13PM +0200, Stefan Behnel wrote: > > https://bugs.launchpad.net/lxml/+bug/502959 > > > > -> segfault when parsing docbook XML with several external entities > > > >

Re: [xml] [Patch] Add column storage for xmlNode

2012-08-28 Thread Daniel Veillard
*/ > }; I said no previously to extending _xmlNode sorry! I do not want to do this, ABI breakage, that data structure is being allocated sometimes by user code, we can't change it. If I were to release libxml3 and break ABI I might do this, but now I can't do this in libxml2. Daniel -

Re: [xml] xmlXPathNodeSetSort performance

2012-08-27 Thread Daniel Veillard
On Mon, Aug 27, 2012 at 12:46:16PM -0400, Rob Richards wrote: > Done got it, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library h

<    1   2   3   4   5   6   7   8   9   10   >