[xml] storing/printing subtree

2009-09-30 Thread Marius Pacha
Hi there, I'm stuck with a problem for a couple of days now and hope to find help here. Parsing a xml document I'm in need of storing some of the subtrees inside of it. I was pointed to http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveTree which looks good but unfortunately I wasn't

Re: [xml] storing/printing subtree

2009-09-30 Thread Martin (gzlist)
On 30/09/2009, Marius Pacha l...@matux.de wrote: Here's what I was trying: xmlBuffer *buf = xmlBufferCreate(); xmlSaveCtxt *subtree = xmlSaveToBuffer(buf,NULL,XML_SAVE_FORMAT); int opResult = xmlSaveTree(subtree, cur); Forgetting to call xmlSaveClose?

Re: [xml] storing/printing subtree

2009-09-30 Thread Petr Pajas
2009/9/30 Marius Pacha l...@matux.de: Hi there, I'm stuck with a problem for a couple of days now and hope to find help here. Parsing a xml document I'm in need of storing some of the subtrees inside of it. I was pointed to http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveTree which looks

Re: [xml] storing/printing subtree

2009-09-30 Thread Marius Pacha
Hi Martin, exactly what I was looking for. Thanks so much. @Petr Thanks for your tip as well. It seems to do the job too. So any experience on which solution might perform better? xmlSaveTree() vs. xmlNodeDump() Regards, marius Am 30.09.2009 um 12:34 schrieb Martin (gzlist): On 30/09/2009,

[xml] C1017 error compiling with Visual Studio 2008 - posted patch works

2009-09-30 Thread Neil Gierman
I recently have been upgrading my open source libraries in my project. In upgrading from libxml2 2.6.29 to 2.7.5, I got a C1017 error on threads.c. The patch supplied by Eric Zurcher for his Borland error also fixed this Visual C++ error. This patch is listed in the archives at

Re: [xml] Minor patch for conditional defines in threads.c

2009-09-30 Thread Daniel Veillard
On Tue, Sep 29, 2009 at 10:34:52AM +1000, eric.zurc...@csiro.au wrote: After struggling with git to obtain the new sources, Hum, 2.7.5 should be available as a tarball release ... plus there are git snapshots builds every hour or so. I've just tried re-building libxml2-2.7.5 under Windows