Re: [xml] purify application using libxml2

2006-07-07 Thread Espen Ekeroth
I have tried this with no success. I will try to contact purify support about this issue. /Espen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 7. juli 2006 23:51 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: xml@gnome.org Subject: RE: [xml] purify application

Re: [xml] relax-ng and windows

2006-07-07 Thread Bjorn Reese
[EMAIL PROTECTED] wrote: > When I try to compile the following simple program found in libxml faq > (see at the end of the message), I got the linker complaining that it > cannot find > a lot of functions: 'xmlNewTextReaderFilename', 'xmlTextReaderRead', > 'xmlFreeTextReader' and '[EMAIL PROTECTED

Re: [xml] purify application using libxml2

2006-07-07 Thread ABeylin
Hi, We had problems purifying applications using libxml2 as well. The issue occurred on Solaris and Windows (those are the only platforms we have purify on). The issue only occurred when using dynamic libxml2 library (libxml2.so/libxml2.dll). When we statically linked to libxml2 (libxml2.a), the

[xml] struct xmlOutputBuffer hand-holding

2006-07-07 Thread Bruce A. Johnson
I've messed around a bit using xmlWriter to write to a file, but now I want to write to a socket, which could be a network socket. Looking at the description for xmlNewTextWriter, I see that it wants an xmlOutputBuffer structure, which is defined thusly: Structure xmlOutputBuffer struct

Re: [xml] Smart way to get ancestors?

2006-07-07 Thread Michael Ransburg
Hi Daniel, > Why are you using the reader (i.e streaming) when it seems you > need full tree informations ? It's because I'm handling very large documents. > Modifying a node or document being processed by a reader is not > proper, that should be considered read-only really. Ok, thanks. A

Re: [xml] purify application using libxml2

2006-07-07 Thread Daniel Veillard
On Fri, Jul 07, 2006 at 08:31:08PM +0200, Espen Ekeroth wrote: > I am trying to run purify on a application using libxml2. Purify is a closed source application. We can't help on purify behaviour. > > When linking with libxml2 it seems like application crashes everywhere it > uses libc or simi

Re: [xml] Smart way to get ancestors?

2006-07-07 Thread Daniel Veillard
On Fri, Jul 07, 2006 at 09:11:35PM +0200, Michael Ransburg wrote: > Hi! > > A small update, this is the way I retrieve the ancestors now: > > node = xmlTextReaderExpand(reader); > > node->children = NULL; > node->prev = NULL; > node->next = NULL; > > while (node->p

Re: [xml] Smart way to get ancestors?

2006-07-07 Thread Michael Ransburg
Hi! A small update, this is the way I retrieve the ancestors now: node = xmlTextReaderExpand(reader); node->children = NULL; node->prev = NULL; node->next = NULL; while (node->parent != NULL) { node = node->parent; } xmlDoc

[xml] purify application using libxml2

2006-07-07 Thread Espen Ekeroth
I am trying to run purify on a application using libxml2. When linking with libxml2 it seems like application crashes everywhere it uses libc or similar. My platform I redhat ES 3.0 I have temporary solved the problem by ifdefing out all libxml calls. If anybody has an idea - please hel

[xml] Smart way to get ancestors?

2006-07-07 Thread Michael Ransburg
Hi! I'm using the XMLTextReader to parse a document, for example: Now lets say that I reach the node and would like to copy its ancestors (, , ) to a new document. The way I'm curre

Re: [xml] libxml2 Universal Binary

2006-07-07 Thread Rush Manbert
Todd Ditchendorf wrote: > Has anyone here successfully compiled a Mac OS X Universal Binary > .framework for libxml2? > > If so... care to share? > Hi Todd, I have built universal static libs, but I went the brute force route. I built using configure/make on a PPC, then did it on an Intel iM

[xml] relax-ng and windows

2006-07-07 Thread patrick
Hi! I am having a simple problem with the relax-ng functions in a windows environment. When I try to compile the following simple program found in libxml faq (see at the end of the message), I got the linker complaining that it cannot find a lot of functions: 'xmlNewTextReaderFilename', 'xmlTextR

[xml] XPath's context doc

2006-07-07 Thread Buchcik, Kasimier
Hi, I'm currently evaluating the nature of the context doc in LibXSLT and Libxml2's xpath.c module. In the specs (XPath 1.0 and XSLT 1.0) the context doc is not mentioned, since, I think, it is assumed to be available via the context node. Libxml2 needs this extra information for some internal rea

Re: [xml] Libxml 2.6.26 XML parsing bug

2006-07-07 Thread Daniel Veillard
On Fri, Jul 07, 2006 at 05:10:52PM +0200, Kris Breuker wrote: > Op 7-7-2006 15:51 heeft Daniel Veillard het volgende geschreven: > >paphio:~/XML -> xmllint --noout fotoarchief.xml > >paphio:~/XML -> /usr/bin/xmllint --noout fotoarchief.xml > >paphio:~/XML -> valgrind xmllint --noout fotoarchief.xml

Re: [xml] Libxml 2.6.26 XML parsing bug

2006-07-07 Thread Kris Breuker
Op 7-7-2006 15:51 heeft Daniel Veillard het volgende geschreven: On Fri, Jul 07, 2006 at 02:22:41PM +0200, Kris Breuker wrote: Good afternoon, When I run the attached fotoarchief.xml file through xmllint.exe (compiled from the libxml 2.6.26 sources) just by running xmllint.exe c:\temp\fotoa

Re: [xml] Libxml 2.6.26 XML parsing bug

2006-07-07 Thread Daniel Veillard
On Fri, Jul 07, 2006 at 02:22:41PM +0200, Kris Breuker wrote: > Good afternoon, > > When I run the attached fotoarchief.xml file through xmllint.exe > (compiled from the libxml 2.6.26 sources) just by running > >xmllint.exe c:\temp\fotoarchief.xml > > I get parser errors about a comment not

[xml] Libxml 2.6.26 XML parsing bug

2006-07-07 Thread Kris Breuker
Good afternoon, When I run the attached fotoarchief.xml file through xmllint.exe (compiled from the libxml 2.6.26 sources) just by running xmllint.exe c:\temp\fotoarchief.xml I get parser errors about a comment not being closed and mismatched starting and ending tags: file:///c%3A/temp/f

Re: [xml] empty tag

2006-07-07 Thread Buchcik, Kasimier
Hi, > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Daniel Veillard > > On Thu, Jul 06, 2006 at 10:55:40PM -0500, Alex Neblett wrote: > > Hello! > > > > Somewhat related, is it possible to preserve > rather than have it > > convert to when doi

Re: [xml] Dump Ancestors and Descendants of current node

2006-07-07 Thread Michael Ransburg
Hi Kasimier, > When you write "all ancestors and the full subtree", then this could > also mean the whole doc, since the "all ancestors" includes the > document node. > Do you want to exclude any non-related children of all the ancestor > nodes instead? > Your result: > > > > > Exac

Re: [xml] empty tag

2006-07-07 Thread Daniel Veillard
On Thu, Jul 06, 2006 at 10:55:40PM -0500, Alex Neblett wrote: > Hello! > > Somewhat related, is it possible to preserve rather than have it > convert to when doing an xslt tranform? No, they are not distinguishable once parsed, they have exactly the same data model, it's actually something cl

Re: [xml] empty tag

2006-07-07 Thread Daniel Veillard
On Fri, Jul 07, 2006 at 07:59:50AM +0200, Mike Hommey wrote: > On Thu, Jul 06, 2006 at 03:44:14PM -0400, Daniel Veillard <[EMAIL PROTECTED]> > wrote: > > On Thu, Jul 06, 2006 at 03:03:12PM -0400, Jean-Francois Dupont-Viel > > (QA/EMC) wrote: > > > Ok it seems to work now. I guess the problem was

Re: [xml] Dump Ancestors and Descendants of current node

2006-07-07 Thread Buchcik, Kasimier
Hi, > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Michael Ransburg > Hi! > > I'm doing an Expand() operation on the current node which > means that "The node will get all its ancestors and the full > subtree available." (according to the XMLTe

[xml] Dump Ancestors and Descendants of current node

2006-07-07 Thread Michael Ransburg
Hi! I'm doing an Expand() operation on the current node which means that "The node will get all its ancestors and the full subtree available." (according to the XMLTextReader tutorial). By using "xmlDocDumpFormatMemoryEnc" I can now easily dump the current node and all its descendants to an xmlCh