Re: [xml] libxml2 and XQuery sequences

2006-07-28 Thread Daniel Veillard
On Fri, Jul 28, 2006 at 08:46:38AM +0400, Nikolay Samokhvalov wrote: Hello, Does anybody use libxml2 to parse not entire docs but parts of them? there is no semantic in XML-1.0 for that kind of operations. There is libxml2 entry points like xmlParseBalancedChunkMemory and

[xml] libxml2 platforms

2006-07-28 Thread Manfred Rahmig
Hi XML Team, my question is of some basic nature. In the last days I have evaluated the libxm2 library if it could be used for a software testframe where the control data for testing program units are stored as XML files. It is relatively simple and it is sufficient for me to use the XMLReader

Re: [xml] libxml2 platforms

2006-07-28 Thread Daniel Veillard
On Fri, Jul 28, 2006 at 09:09:50AM +0200, Manfred Rahmig wrote: (1) First I would be interested in your opinion if this is the right strategy? Completely depends. On Fedora/RHEL I maintain the package, others do a good job on other Linux distro, for legacy systems and Windows all bets are

[xml] ctxt-sax-fatalError never beging used

2006-07-28 Thread Petr Pajas
Hi Daniel, All, I wonder why the sax fatalError callback is never called even for fatal errors. I would assume the corresponding code in __xmlRaiseError to look something like: if (level == XML_ERR_WARNING) channel = ctxt-sax-warning; else if (level == XML_ERR_FATAL)

Re: [xml] ctxt-sax-fatalError never beging used

2006-07-28 Thread Daniel Veillard
On Fri, Jul 28, 2006 at 11:13:18AM +0200, Petr Pajas wrote: Hi Daniel, All, I wonder why the sax fatalError callback is never called even for fatal errors. I would assume the corresponding code in __xmlRaiseError to look something like: if (level == XML_ERR_WARNING) channel

[xml] DTD Handlers

2006-07-28 Thread srivatsan s
I am trying to use libxml DTD handlers. I have the following below example !ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* This call back xmlSAX2ElementDecl , takes xmlElementContentPtr Whose data Structure is struct _xmlElementContent { xmlElementContentType type; /*

Re: [xml] DTD Validation

2006-07-28 Thread Daniel Veillard
On Fri, Jul 28, 2006 at 05:49:34AM -0500, Bipin Mistry wrote: hello all I am using following code to read XML buffer to XML_DOC pointer xml_doc = xmlReadMemory(xml_memory_reference, strlen(xml_memory_reference), noname.xml, NULL,

Re: [xml] DTD Handlers

2006-07-28 Thread Daniel Veillard
On Fri, Jul 28, 2006 at 11:35:45AM +0100, srivatsan s wrote: I am trying to use libxml DTD handlers. I have the following below example !ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* This call back xmlSAX2ElementDecl , takes xmlElementContentPtr Whose data

[xml] Configure error C++ preprocessor CC -E fails sanity check

2006-07-28 Thread Augie Henriques
Hi. I'm new to the libxml. I have QNX4 and I'm trying to run the configure script using... configure --disable-shared --without-threads CC=cc CXX=CC LD=cc CPP="cc -E" CXXCPP="CC -E" CFLAGS="-mf -j -zp4 -5r" CXXFLAGS="-mf -j -zp4 -5r" I get the following error... configure: error: C++

Re: [xml] Configure error C++ preprocessor CC -E fails sanity check

2006-07-28 Thread Daniel Veillard
On Fri, Jul 28, 2006 at 01:05:44PM -0400, Augie Henriques wrote: Hi. I'm new to the libxml. I have QNX4 and I'm trying to run the configure script using... configure --disable-shared --without-threads CC=cc CXX=CC LD=cc CPP=cc -E CXXCPP=CC -E CFLAGS=-mf -j -zp4 -5r CXXFLAGS=-mf -j -zp4

Re: [xml] libxml2 and XQuery sequences

2006-07-28 Thread Liam R E Quin
On Fri, 2006-07-28 at 08:46 +0400, Nikolay Samokhvalov wrote: Does anybody use libxml2 to parse not entire docs but parts of them? Ideally, it would be work with items of XQuery Data Model. libxsl supports xpath 1, not XPath 2; there's no support right now for the XPath 2.0 and XML Query Data

[xml] libxml memory leak ?

2006-07-28 Thread christophe barbe
Hi All, I was tracking a memory leak and ended up with a very simple libxml program that leaks according to valgrind (I reproduced it with libxml 2.6.26). Could someone, please, have a look at the attached c file and tell me if I am doing something wrong? If not, I will create a bug report for

Re: [xml] libxml memory leak ?

2006-07-28 Thread Mike Hommey
On Fri, Jul 28, 2006 at 02:25:41PM -0400, christophe barbe [EMAIL PROTECTED] wrote: Hi All, I was tracking a memory leak and ended up with a very simple libxml program that leaks according to valgrind (I reproduced it with libxml 2.6.26). Could someone, please, have a look at the attached