Re: [xml] correct version of libxml2

2011-04-25 Thread Daniel Veillard
/libxml-parser.html#xmlCleanupParser see the documentation, you should call this function only once libxml2 is not in use anywhere in the application, which those days is very had to assert. Simplest is to just not call it. Daniel -Original Message- From: Daniel Veillard [mailto:veill

Re: [xml] correct version of libxml2

2011-04-25 Thread Daniel Veillard
for predefined entities of XML have always been cleaned up that way for example, Calling it while the library or its data were still in use has always been a dangerous thing to do, then it's a matter of luck... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

Re: [xml] create node from a string (with xml elements inside)

2011-04-20 Thread Daniel Veillard
?) I would rather suggest you use xmlParseInNodeContext() for this, see include/libxml/parser.h http://xmlsoft.org/html/libxml-parser.html#xmlParseInNodeContext You will get back a node list to place at that location, it doesn't try to insert automatically. Daniel -- Daniel Veillard

Re: [xml] SAX1 and deprecated functions

2011-03-30 Thread Daniel Veillard
as well? No they are here, and will remain, but you're loosing all the recent work on API and parser optimization by not using the more recent xmlReadFile()/xmlRead... new entry points. See the bottom of parser.h New set of simpler/more flexible APIs, Daniel -- Daniel Veillard | libxml Gnome

Re: [xml] xpath exists

2011-03-24 Thread Daniel Veillard
to be in 2.0 though but I don't know it... 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.org

Re: [xml] libxml2 crash

2011-03-19 Thread Daniel Veillard
/?id=a7e79f28689c574e0bbef17f4cb3da00249181ff If you change things randomly, yes you can get crashs because of 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

Re: [xml] question about how to set namespace in libxml

2011-03-07 Thread Daniel Veillard
On Sun, Mar 06, 2011 at 05:30:25PM +0100, Michael Ludwig wrote: Daniel Veillard schrieb am 06.03.2011 um 22:18 (+0800): On Sun, Mar 06, 2011 at 12:43:23PM +0100, Michael Ludwig wrote: But what about the question I raised? Is it possible to turn off namespace awareness with libxml2 using

Re: [xml] Ability to plug in schema validation on top libxml2 SAX parser

2011-03-04 Thread Daniel Veillard
-- 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.org/ ___ xml mailing list, project page http

Re: [xml] Memory Bug detection for gdome

2011-03-02 Thread Daniel Veillard
a libxml2 issue. But if gdome modify the tree with a piece of memory allocated by malloc and then tries to free the tree you will get this problem. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http

Re: [xml] xinclude and xmlParseChunk

2011-03-02 Thread Daniel Veillard
On Wed, Mar 02, 2011 at 09:00:12PM +, Lucian Smith wrote: * Daniel Veillard veill...@redhat.com [2011-03-02 06:31] writes: On Tue, Mar 01, 2011 at 10:14:30PM +, Lucian Smith wrote: Hello, all. I am investigating how to modify a system that currently uses libxml, with its

Re: [xml] xinclude and xmlParseChunk

2011-03-01 Thread Daniel Veillard
() on the resulting document. You will have to use xmlXIncludeProcessTreeFlags() on all the top element node that xmlParseChunk may return to you. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] Unable to create huge text nodes with libxml2 2.7.7

2011-02-28 Thread Daniel Veillard
option to eliminate the 10MB size limit. My suggestion would be to directly create the parent node and its children via the tree API instead of giving it to an intermediary parser. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] libxml2, xpath, accessing attribute value

2011-02-27 Thread Daniel Veillard
object containing a string. 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.org/ ___ xml

Re: [xml] Whitespace handling with schema

2011-02-24 Thread Daniel Veillard
, but at the application layer, not at the parser one. 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.org

Re: [xml] No versioning in 2.7.8 build

2011-02-23 Thread Daniel Veillard
/browse/libxml2/commit/?id=00819877651b87842ed878898ba17dba489820f0 the patch is the same, sorry ! 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

Re: [xml] Q: libxml2 bug#638618

2011-02-23 Thread Daniel Veillard
pass the userData 4/4: it's a actually a bug too, yes, this makes the code simpler and correct so the 4 patches are applied and pushed to the git tree, thanks a lot ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search

Re: [xml] libxml2 : xmlFreeTextReader crashes

2011-02-23 Thread Daniel Veillard
on this makes it an guessing exercise, not a debugging exercise. Provide a .c which when compiled and linked shows the crash ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] Deadlock in catalog.c?

2011-02-23 Thread Daniel Veillard
://xmlsoft.org/threads.html 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.org/ ___ xml

Re: [xml] libxml Windows registry installation issues

2011-02-22 Thread Daniel Veillard
they expected. I never use Windows myself so I can't really help you there 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.org

Re: [xml] Submitting patches, list or bugzilla?

2010-11-15 Thread Daniel Veillard
pointers may still look like valid pointers, but that's probably the best option at this point, yes if this test end up failing for some reason that will still be easy to sort out. So I commited and pushed your patch, thanks Andrew ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit

Re: [xml] libxml2 messed up MonoTouch and Interface Builder

2010-11-10 Thread Daniel Veillard
On Tue, Nov 09, 2010 at 02:50:23PM -0800, Mark Rowe wrote: On 2010-11-09, at 07:37, Daniel Veillard wrote: On Tue, Nov 09, 2010 at 04:01:02AM -0800, Mark Rowe wrote: Based on your description it sounds like you've overwritten your system copy of libxml2 with a copy that you built

Re: [xml] Submitting patches, list or bugzilla?

2010-11-10 Thread Daniel Veillard
cannot garantee a quick review on bugzilla, unless I happen to step on the notice, on the list it's more likely, but I always look for bugs with patches attached on bugzilla before making a release. I guess your patch wasn't attached or flagged as a patch. Daniel -- Daniel Veillard | libxml

Re: [xml] XML schema based validation

2010-11-09 Thread Daniel Veillard
On Sat, Nov 06, 2010 at 09:10:42AM -0400, dhk wrote: Will this example (testSchemas.c) be posted to the http://www.xmlsoft.org/examples/index.html page? Hum, it would need to be tweaked up a bit and maybe cleaned up before suggesting that as example code. Daniel -- Daniel Veillard

Re: [xml] libxml2 messed up MonoTouch and Interface Builder

2010-11-09 Thread Daniel Veillard
in ? Except a change in the way encoding are provided I don't really how such an error could happen. Not that I suggest replacing system libraries, but I wonder if you have patches which should be upstreamed, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] Namespace Nodes in XPath Nodesets Deleting NsNodes

2010-11-08 Thread Daniel Veillard
are created on the fly to match the namespace node semantic of XPath and destroyed when the XPath nodeset is freed. To destroy namespaces in the tree you need to search the NsDef where it is carried, and in the full tree in scope remove any reference from elements or attributes. Daniel -- Daniel Veillard

Re: [xml] [textXPath.c] unable to find libxml.h

2010-11-08 Thread Daniel Veillard
or directory. Can you please give me pointers from where i can download the required libxml.h? TestXPath .c is part of libxml2 own tests programs, it references the internal include libxml.h and the code is not supposed to be compiled outside of the tree without tweaking. Daniel -- Daniel Veillard

Re: [xml] Release of libxml2-2.7.8

2010-11-08 Thread Daniel Veillard
On Fri, Nov 05, 2010 at 05:14:34PM -0400, Daniel Macks wrote: On Fri, 5 Nov 2010 19:10:41 0100, Daniel Veillard wrote: On Thu, Nov 04, 2010 at 10:55:01PM -0400, Daniel Macks wrote: Bug #630682...python self-test still fails with this latest release. And for the python HTML

Re: [xml] Why xmlReadFile cannot get all content of my xml?

2010-11-08 Thread Daniel Veillard
, it actually forbids use of DTD or internal subset, I think you're confused about terminology and how SOAP or DTD validation is supposed to work. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net

Re: [xml] Release of libxml2-2.7.8

2010-11-05 Thread Daniel Veillard
On Thu, Nov 04, 2010 at 10:55:01PM -0400, Daniel Macks wrote: On Thu, 4 Nov 2010 18:59:50 0100, Daniel Veillard wrote: I got urged to make a release, so spend the last couple of days chasing for bugs and patches in bugzilla. It's too bad we don't have a solution on the zlib problem seen

Re: [xml] problems with zlib 1.2.5?

2010-11-05 Thread Daniel Veillard
for a while and that's the first time I hear about such a problem, so something weird is going on, but what ??? One of the things I'm wondering is the plugin for Firefox isn't running 32 bits and somehow there is a zlib dependancy problem there... Daniel -- Daniel Veillard | libxml Gnome XML XSLT

[xml] Release of libxml2-2.7.8

2010-11-04 Thread Daniel Veillard
problems (Daniel Veillard) - Fix a couple of typo in HTML parser error messages (Michael Day) - Forgot to update the news page for 0.7.7 (Daniel Veillard) Portability: - 607273 Fix python detection on MSys/Windows (LRN) - 614087 Fix Socket API usage to allow Windows64 compilation (Ozkan Sezer) - Fix

Re: [xml] Release of libxml2-2.7.8

2010-11-04 Thread Daniel Veillard
On Thu, Nov 04, 2010 at 06:59:50PM +0100, Daniel Veillard wrote: I got urged to make a release, so spend the last couple of days chasing for bugs and patches in bugzilla. It's too bad we don't have a solution on the zlib problem seen by higuita but the new version of zlib and libxml2 have

Re: [xml] XInclude anomality ...

2010-11-03 Thread Daniel Veillard
for this book ... /inc paphio:~/XML - So except for the second line of error which is wrong the processing however seems correct, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] problems with zlib 1.2.5?

2010-11-03 Thread Daniel Veillard
? 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.org/ ___ xml mailing list, project page

Re: [xml] Add new pretty-printing and sorting options for saving XML

2010-11-03 Thread Daniel Veillard
apply and commit the first 3 patches nearly as is, adding the new xmllint option. IMHO there isn't really a need at the xmllint level for the following since --c14n just implement the spec. At the API level c14n really comes as a separate module. Daniel -- Daniel Veillard | libxml Gnome XML

Re: [xml] Fwd: HTML5 test cases

2010-11-03 Thread Daniel Veillard
On Wed, Nov 03, 2010 at 04:02:57PM -0400, Sam Ruby wrote: On 11/03/2010 02:50 PM, Daniel Veillard wrote: This does not need to wait until REC status, the parsing algorithm is fairly stable. okay Some background: Henri wrote a fully compliant HTML parser in Java, and has been keeping

Re: [xml] State of schema validation

2010-11-01 Thread Daniel Veillard
On Sun, Oct 31, 2010 at 05:04:26PM +0100, buch...@gmx.net wrote: Hi, Hi Kasimier ! Von: Daniel Veillard veill...@redhat.com On http://xmlsoft.org/html/libxml-xmlschemas.html I read that validation of schemas is incomplete. Does anybody know what is missing? The most [...] I

Re: [xml] PATCH: Compare encoding pointer with a null instead of xmlCharEncoding element

2010-11-01 Thread Daniel Veillard
for the patch, applied, and pushed ! 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.org

Re: [xml] State of schema validation

2010-10-28 Thread Daniel Veillard
I have no question about the semantic, it's just a matter of fixing code (when possible). That said when people report obvious problems in XSD support I try to plug it, if they have a patch that's even better, but in practice it doesn't happen very often. Daniel -- Daniel Veillard

Re: [xml] Error handling on a per-parser base

2010-10-28 Thread Daniel Veillard
this. But note that some errors may occur in part of the code where the parsing context may not be available, and there you won't be able to disambiguate, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http

Re: [xml] libxml2 2.7.7 fails make distcheck

2010-10-28 Thread Daniel Veillard
with make distcheck -- but that bug's been marked as fixed. Well that break for me too, but somewhere else. I take patches. I usually just 'make dist' as 'make distcheck' tends to break easilly especially since it's trying to run regression tests outside of the tree. Daniel -- Daniel Veillard

Re: [xml] BUG at compiling time related with gzopen64

2010-10-28 Thread Daniel Veillard
of what's going on. 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.org/ ___ xml mailing

Re: [xml] Error handling on a per-parser base

2010-10-28 Thread Daniel Veillard
On Thu, Oct 28, 2010 at 05:44:03PM +0100, R. Mattes wrote: On Thu, 28 Oct 2010 18:27:54 +0200, Daniel Veillard wrote On Mon, Oct 25, 2010 at 09:09:03PM +, Ralf Mattes wrote: Hello list, is it possible to register a custom error function per xmlParserCtxtPtr created

Re: [xml] xmllint and libxml2

2010-10-25 Thread Daniel Veillard
, and libxml2 implements based on that (and in a portable way) see struct _xmlSchemaValDecimal in xmlschemastypes.c. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] bug when parsing html?

2010-10-25 Thread Daniel Veillard
is being called by xmlInitParser. And as the doc says http://xmlsoft.org/threads.html xmlInitParser() should be called from main if you use threads... For the SAXv1 handlers they are deprecated, hence the need for LIBXML_LEGACY_ENABLED to be on Daniel -- Daniel Veillard | libxml Gnome XML XSLT

Re: [xml] xmlC14NDocDumpMemory inclusive_ns_prefixes parameter not const

2010-10-25 Thread Daniel Veillard
-- 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.org/ ___ xml mailing list, project page http

Re: [xml] XPath memory leak

2010-10-15 Thread Daniel Veillard
at it, but confirmed, there is a leak, so I made the simple fix needed and commited it to git, thanks again ! 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

Re: [xml] Wrong error message when parsing SVG.xsd

2010-10-15 Thread Daniel Veillard
On Thu, Sep 09, 2010 at 12:14:39PM +0200, Daniel Veillard wrote: On Wed, Sep 08, 2010 at 07:00:20PM +0200, Mike Hommey wrote: PS: Posting here, because it seems bugzilla is not read... I have 3 patches in there that are bitrotting. (613466, 613467, 625851) argh, well yes for urgent

Re: [xml] Get rid of a likely typo in xpath.c

2010-10-12 Thread Daniel Veillard
);            return (total); #endif I think the =+ should be +=, however total is zero initialized so this should not make any difference. Gahhh ... I wonder for how many years this went unnoticed, since 2006 apparently ! Pushed the fix to git, thanks ! Daniel -- Daniel Veillard

Re: [xml] strange end-tag position (parsing html)

2010-10-12 Thread Daniel Veillard
this properly. Try to use the HTML_PARSE_RECOVER option to parse such documents. 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.org

Re: [xml] Add new pretty-printing and sorting options for saving XML

2010-10-12 Thread Daniel Veillard
experience. See xmllint options: --c14n : save in W3C canonical format v1.0 (with comments) --c14n11 : save in W3C canonical format v1.1 (with comments) --exc-c14n : save in W3C exclusive canonical format (with comments) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] Add new pretty-printing and sorting options for saving XML

2010-10-12 Thread Daniel Veillard
On Tue, Oct 12, 2010 at 09:34:11AM +0200, Daniel Veillard wrote: On Tue, Oct 05, 2010 at 10:22:22PM +0100, Adam Spragg wrote: libxml developers, Please find for your consideration a series of patches to add 2 new xmlSaveOptions to libxml. XML_SAVE_WSNONSIG is a new pretty-printing

Re: [xml] Report libxslt bug (minor issue)

2010-10-12 Thread Daniel Veillard
by libtool. Right, small problem, easy to fix, commited to git, 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://libvirt.org

Re: [xml] size of executable

2010-10-05 Thread Daniel Veillard
the options, 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.org/ ___ xml mailing list

Re: [xml] Reg. xmlDomWrap functions in Tree.c

2010-09-28 Thread Daniel Veillard
immediately and delete it! This legal requirement is incompatible with the use of this mailing-list, get it removed or post from another address in the future ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http

Re: [xml] Performance gets bad when parsing xml with namespaces

2010-09-24 Thread Daniel Veillard
too long, then I will investigate provide me a gzipped version of the file on some server to have a look. 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

Re: [xml] Exception at TextWriterEndDocument()

2010-09-15 Thread Daniel Veillard
!xmlTextWriterEndDocument+0x1f3 08 xxx!wrap_to_xml+0x2cf Any tip would help me, Either you exhausted memory or some of the code broke the memory allocation management. I don't know how to debug this on Windows. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] Line numbers and XInclude

2010-09-15 Thread Daniel Veillard
. xmlNodeGetBase() should get it right at least if the xml:base attributes are kept. Is there any workaround for this other than implementing XInclude resolution by hand? I think the 2 methods above provide an heuristic and the possibility for an exact algorithm :-) Daniel -- Daniel Veillard

Re: [xml] xmlDocPtr to xml string

2010-09-15 Thread Daniel Veillard
have set the value 444 to that node. Now I have to extract the modified xml string. Waiting for response. Why do you ask instead of looking the existing provided examples in the documentation ? http://xmlsoft.org/examples/index.html#xpath2.c Daniel -- Daniel Veillard | libxml Gnome

Re: [xml] Problem validating documents containing public entities with empty URIs

2010-09-10 Thread Daniel Veillard
On Fri, Sep 10, 2010 at 03:22:20PM +0200, Nikolai Weibull wrote: On Fri, Sep 10, 2010 at 15:12, Daniel Veillard veill...@redhat.com wrote: On Fri, Sep 10, 2010 at 02:52:17PM +0200, Nikolai Weibull wrote: Wow, that was a fast response! !DOCTYPE a PUBLIC a.dtd [ !ENTITY b PUBLIC b

Re: [xml] Wrong error message when parsing SVG.xsd

2010-09-09 Thread Daniel Veillard
allocated in that case 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.org/ diff --git a/SAX2.c b/SAX2.c index 84c1f00..c0482c0 100644

Re: [xml] Crash on xmlMalloc

2010-09-09 Thread Daniel Veillard
by glibc, and glibc notices during an allocation from libxml2 but the corruption was done earlier. Use valgrind to track this down. Don't assume the problem is in other people code, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] libxml .xsd validation problem

2010-09-08 Thread Daniel Veillard
inheriting the default namespace from root. Don't use a default namespace on the root. and fix the children namespace definition. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] inconsistent behavior by xmlChildElementCount()

2010-09-01 Thread Daniel Veillard
. There isn't much more, maybe you can look at some of the program code in the sources like xmllint.c, 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

Re: [xml] Memory tag errors on xmlCleanupCharEncodingHandlers

2010-08-25 Thread Daniel Veillard
an xmlMemSetup() equivalent and all functions go though that wrapped allocator. If the problem was present even the most trivial tests would fail in this mode. The problem is likely to be somewhere else... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] Reading only the text contents of an element

2010-08-09 Thread Daniel Veillard
the filtering, libxml2 can't do that for you. 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.org

Re: [xml] parser xml file crash, any body can give me some suggest

2010-08-05 Thread Daniel Veillard
SIZE TYPE paphio:~/XML - and the parser allocated only 31 KBytes to build the document. 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

Re: [xml] Reparenting nodes across documents?

2010-08-05 Thread Daniel Veillard
in all cases. 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.org/ ___ xml mailing list

Re: [xml] Can xmllint format with in-place file saving?

2010-08-02 Thread Daniel Veillard
the output to serialize it. 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.org

Re: [xml] HTML parser: missing semicolumn

2010-08-02 Thread Daniel Veillard
On Mon, Aug 02, 2010 at 11:57:10AM +1000, Michael Day wrote: Hi, htmlParseCharRef in HTMLparser.c has two missing semicolumn error messages, these should be semicolon instead. Best regards, okidoc, pushed :-) thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT

Re: [xml] doubles and schema validation

2010-07-28 Thread Daniel Veillard
++; if ((*cur == '-') || (*cur == '+')) Okay that patch looks fine, except for mail mangling and code format, so I applied it manually, look fine, passes regtests, so pushed to git, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [xml] libxml2/libxslt: global variables considered harmful

2010-07-28 Thread Daniel Veillard
not show up. If I were to do libxml3 then sure, but I don't see that on the horizon, sorry :-\ 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

Re: [xml] doubles and schema validation

2010-07-28 Thread Daniel Veillard
On Wed, Jul 28, 2010 at 03:52:44PM +0300, Andrew W. Nosenko wrote: On Wed, Jul 28, 2010 at 14:50, Csaba Raduly rcs...@gmail.com wrote: On Wed, Jul 28, 2010 at 11:44 AM, Daniel Veillard  wrote: On Thu, Jul 22, 2010 at 02:38:16PM +0200, Csaba Raduly wrote: Anyway, here's a revised version

Re: [xml] Adding default DOCTYPE when HTML document doesn't have any

2010-07-26 Thread Daniel Veillard
content= paphio:~/XML - xmllint --html --nodefdtd --debug tst.html HTML DOCUMENT URL=tst.html standalone=true ELEMENT html ELEMENT body TEXT content= paphio:~/XML - thanks for raising the issue, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http

Re: [xml] What would make xmlSetProp return null?

2010-06-19 Thread Daniel Veillard
LIBXML_DEBUG_ENABLED has been defined during compilation. And that seems to be controlled by the --with-debug `configure` option. Confirming both points from Björn ! :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine

Re: [xml] new xpointer() data

2010-06-03 Thread Daniel Veillard
not sure if or when I may have time for looking at XPointer code again, but if the issues are well explained in bugzilla with examples making it easy to reproduce then there is a chance it will get fixed :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

Re: [xml] DTD Validating

2010-06-03 Thread Daniel Veillard
validation of smaller chunk. In general libxml2 chunks also mean arbitrary range of characters on the document, that doesn't even match structural ranges in the document so in that case it really doesn'[t make sense to validate at that level. Daniel -- Daniel Veillard | libxml Gnome XML XSLT

Re: [xml] OS/390 compatibility (EBCDIC)

2010-05-13 Thread Daniel Veillard
in alphabetical order etc ... I'm all for portability but to the limit it doesn't completely penalize maintainability or code efficiency. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] OS/390 compatibility (EBCDIC)

2010-05-13 Thread Daniel Veillard
On Thu, May 13, 2010 at 07:46:53PM +0300, Alon Bar-Lev wrote: On Thu, May 13, 2010 at 7:38 PM, Daniel Veillard veill...@redhat.com wrote: On Wed, May 12, 2010 at 03:15:02PM +0300, Alon Bar-Lev wrote: Thank you for your comments. I found the first problem, the correct code page should

Re: [xml] memory tag error occurs

2010-04-30 Thread Daniel Veillard
of the problem ? An excerpt out of context can hide so many things... 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.org

Re: [xml] creating xmlreader from a XmlNode

2010-04-30 Thread Daniel Veillard
API to do this from a preparsed document, but really people use the Reader to avoid loading the full document in memory, so this is not widely used, http://xmlsoft.org/html/libxml-xmlreader.html#xmlReaderNewWalker Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org

Re: [xml] HTMLparser

2010-04-29 Thread Daniel Veillard
a patch, for example. Should HTMLparser parse bad broken html or not ? it tries to, but there is a limit to what is achieveable, some areas are harder than others decently handle brokeness. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

Re: [xml] libxml2-2.7.7/doc/examples test suite failure on ia64 (parse2 test2.xml)

2010-04-29 Thread Daniel Veillard
it further in order to help get it patched. Well I may have misunderstood your report. build with debug and running the crashing test under gdb to find where it crashes and then try to sort out the problem would be a very first step toward a fix. Daniel -- Daniel Veillard | libxml Gnome

Re: [xml] memory tag error occurs

2010-04-29 Thread Daniel Veillard
-- 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.org/ ___ xml mailing list, project page http

Re: [xml] libxml2-2.7.7/doc/examples test suite failure on ia64 (parse2 test2.xml)

2010-04-28 Thread Daniel Veillard
, they should have made sure to push the libxml2 update at the same time. 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.org

Re: [xml] autogen.sh failure

2010-04-26 Thread Daniel Veillard
the board? I'm not sure but I think at some point I had to create that m4 directory and everything went well there after, maybe this need to be added to autogen.sh Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine

Re: [xml] Second call to xmlReaderForMemory breaks in separated thread

2010-04-23 Thread Daniel Veillard
I could find more information about it? Thanks in advance, http://xmlsoft.org/threads.html I don't see an xmlInitParser() call in your code. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http

Re: [xml] xmlAddChild xmlCopyNode - namespace lost

2010-04-23 Thread Daniel Veillard
it in its context, i.e. passing the target to the subtree creation. There is contextual references from a subtree like namespaces and entities, and it's best to avoid moving stuff if you don't understand perfectly all the data structures involved. Daniel -- Daniel Veillard | libxml Gnome XML

Re: [xml] Use xmlReader in an embedded operating system

2010-04-12 Thread Daniel Veillard
of picking up what you need. If not well look in the sources, there are examples from various platforms from win32 to vms ... usually in subdirectories. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http

Re: [xml] How to parse a file too large

2010-04-06 Thread Daniel Veillard
for a single instance. Either you didn't properly freed the tree, or you're unable to get a precise memory usage from your libc memory allocator, but libxml2 do free everything. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM

Re: [xml] Test suite errors 2.7,7

2010-04-06 Thread Daniel Veillard
./test/ebcdic_566012.xml and compare the output with result/ebcdic_566012.xml 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.org

Re: [xml] Test suite errors 2.7,7

2010-04-06 Thread Daniel Veillard
On Tue, Apr 06, 2010 at 12:39:08PM -0500, Todd Rinaldo wrote: On Apr 6, 2010, at 7:20 AM, Daniel Veillard wrote: Works for me on a RHEL-5.4 x86_64. run xmllint ./test/ebcdic_566012.xml and compare the output with result/ebcdic_566012.xml Please disregard my earlier email

Re: [xml] segmentation fault

2010-04-01 Thread Daniel Veillard
at this point. XPath queries return pointers into the document tree. Don't free the tree until you are still accessing it. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com

Re: [xml] What's the meaning of returning -1 from htmlParseChunk?

2010-03-31 Thread Daniel Veillard
recover from. Check the errors emitted by the parser. 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.org

Re: [xml] loading concatenated documents

2010-03-31 Thread Daniel Veillard
the taken as a whole clearly indicating it's absolutely forbidden to stop applying the rules at some point. You feed the XML parser what the entiti(es) contains and it provides a result back. If there is an error in the middle or the end, it invalidates the whole document. Daniel -- Daniel

Re: [xml] loading concatenated documents

2010-03-29 Thread Daniel Veillard
-- 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.org/ ___ xml mailing list, project page http

Re: [xml] loading concatenated documents

2010-03-29 Thread Daniel Veillard
#xmlParseBalancedChunkMemory or http://xmlsoft.org/html/libxml-parser.html#xmlParseInNodeContext But you have to provide the boundaries. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http

Re: [xml] loading concatenated documents

2010-03-29 Thread Daniel Veillard
to do so would just make the parser non-conformant to the XML-1.0 specification. If you don't need an XML parser, fine, but libxml2 *is* an XML parser. Stacking XML document without keeping track of boundaries *is* a design error failure, unrelated to the parser being used. Daniel -- Daniel

Re: [xml] loading concatenated documents

2010-03-29 Thread Daniel Veillard
such routines. 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.org/ ___ xml mailing list, project

Re: [xml] Non recursive html parser

2010-03-15 Thread Daniel Veillard
On Wed, Feb 17, 2010 at 10:04:08AM +0100, Daniel Veillard wrote: On Tue, Feb 16, 2010 at 10:00:03AM +0300, Eugene Pimenov wrote: Hello everyone, As my colleague pointed out in December (http://mail.gnome.org/archives/xml/2009-December/msg00036.html ; although he didn't do

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