Re: [xml] How to add newlines to output?

2009-10-14 Thread Martin B.
l...@burtbicksler.com wrote: Hi, New to libxml(2) and generally have things pretty well figured out but one issue that I haven't been able to work out is the following: I am using the API to create a record of the form: rootfirst id=1child1ChildData/child1child2ChildData/child2/first/root

Re: [xml] xmlCleanupParser() question / patch

2010-01-19 Thread Martin B.
Daniel Veillard wrote: On Thu, Jan 14, 2010 at 02:59:50AM +0100, Aron Szabo wrote: Hi! If I use the library in a threaded program and call xmlCleanupParser() I can't reinitialize it. So here's what happens: 1. xmlCleanupThreads() is called from xmlCleanupParser() 2. the global key is deleted

Re: [xml] xmlCleanupParser() question / patch

2010-01-19 Thread Martin B.
Daniel Veillard wrote: On Tue, Jan 19, 2010 at 03:40:30PM +0100, Martin B. wrote: Daniel Veillard wrote: On Thu, Jan 14, 2010 at 02:59:50AM +0100, Aron Szabo wrote: Hi! If I use the library in a threaded program and call xmlCleanupParser() I can't reinitialize it. So here's what happens: 1

Re: [xml] xmlCleanupParser() question / patch

2010-01-19 Thread Martin B.
at 04:38:24PM +0100, Martin B. wrote: Daniel Veillard wrote: Best thing would be if xmlCleanupParser() would be removed completely, no? That is impossible, for ABI compatibility, Ah OK. In that case the best thing would be to have the function in the ABI but get a compiler error if it's used

[xml] Minor path for xmltree.c : xmlNodeSetName

2010-01-21 Thread Martin B.
While compiling an older version (2.6.27) and then re-checking with the newest code, I found that there's a minor casting issue in xmlNodeSetBase(..). It's purely cosmetic, but it cost me time trying to figure out what's going on, so I though it probably should be changed to use a

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-22 Thread Martin B.
Daniel Veillard wrote: On Thu, Jan 21, 2010 at 02:09:35PM +0100, Martin B. wrote: Hi all! I've downloaded ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz and compiled it with Visual Studio 2005 without warnings. File ./test/ebcdic_566012.xml generated an error That's due to EBCDIC

Re: [xml] libxml2 [Sub-document C14N / Custom Malloc]

2010-03-12 Thread Martin B.
Tejus A G wrote: Hi All, I have 2 queries w.r.t libxml2 API/usage. 1. 2. Is there any way to give the libXML2 library a custom malloc function ? So, that all memory allocations the library does goes through it instead of whatever libXML2 is using. See: xmlMemSetup xmlGcMemSetup

Re: [xml] Attempted to read or write protected memory

2010-03-23 Thread Martin B.
siddharth sehgal wrote: Hi I am facing this problem in Visual Studio 2005 using VB-2005 and native unmanaged c++ dll which in turn uses libxml2. * Attempted to read or write protected memory. This is often an indication that other memory has been corrupted. * I will try to explain the

[xml] Memory requirement heuristics for libxml?

2010-11-10 Thread Martin B.
Hi! Are there any guidelines as to what memory requirements are to be expected when reading a xml file with xmlReadFile? That is, given a simple xml file (no namespaces and such stuff) with no text nodes, how much memory do the data structures take, compared to the file on disk? Simple

Re: [xml] is libxml2 library thread safe

2012-01-23 Thread Martin B.
On 23.01.2012 10:36, Alex Bligh wrote: --On 23 January 2012 10:11:58 +0100 Martin B. 0xcdcdc...@gmx.at wrote: libxml2 is thread-safe after the library has been initialized with xmlInitParser() Is that really true? Are node attach and detach operations atomic in their tree modifications? I

Re: [xml] libxml2 - Unicode compile under MSVC 2010

2013-03-30 Thread Martin B.
On 30.03.2013 02:02, Bjoern Hoehrmann wrote: * nscg wrote: Since I would like to use libxml2 with a wxWidgets application in a Unicode compile, I have been looking around for suitable libraries or DLLs. My preference would be using MSVC 2010 Express as the compiler/debugger. I did find

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

2013-03-30 Thread Martin B.
{Re-sending this. Never got anywhere it seems.} Hi! I currently have to fix an existing application to use something other than the DOM interface of libxml2 because it turns out it gets passed XML files so large that they can't be loaded into memory. I have rewritten the data loading from

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

2013-03-30 Thread Martin B.
On 30.03.2013 16:35, Daniel Veillard wrote: On Sat, Mar 30, 2013 at 08:02:38AM +0100, Martin B. wrote: ... It turns out however, that the subtree where the large data resides has to be read not in-order, but I have to collect some (small amount of) data before the other. (And the problem