Re: [xml] xpath2.c

2006-12-05 Thread Daniel Veillard
On Tue, Dec 05, 2006 at 05:05:47PM +0100, GORKA VELEZ wrote: > I'm trying to build an aplication to change the content of an element in a > xml document and I've found the xpath2.c example that looks great, but it > doesn't do what i expected: it never resolves an xpath expression. > I run the pr

[xml] xpath2.c

2006-12-05 Thread GORKA VELEZ
I'm trying to build an aplication to change the content of an element in a xml document and I've found the xpath2.c example that looks great, but it doesn't do what i expected: it never resolves an xpath expression. I run the program as the documentation says and I get the same xml document prin

Re: [xml] memory management issues

2006-12-05 Thread Andrew W. Nosenko
On 12/5/06, Nicholas Aaron Philbrook <[EMAIL PROTECTED]> wrote: > Also, I'm storing the result of xmlNodeGetContent in regular char *, > is it okay to call simple free() on these pointers when cleaning up? > Or does xmlFree do something that free() doesn't? By default, xmllFree() is a wrapper arou

[xml] memory management issues

2006-12-05 Thread Nicholas Aaron Philbrook
I have been looking through the Docs and the API, and I'm not entirely sure if I am adequately freeing all of the memory that libxml is using. valgrind is I am calling xmlParseMemory on a buffer of xml input that I get back from a curl call, and calling xmlDocGetRootElement and looking for variou