Re: [xml] How to create an xmlBufferPtr???
- From: Thomas Gagne <tgagne ix netcom com>
- To: xml gnome org
- Subject: Re: [xml] How to create an xmlBufferPtr???
- Date: Mon, 21 Jan 2002 17:20:10 -0500
Daniel Veillard wrote:
On Mon, Jan 21, 2002 at 04:57:03PM -0500, Thomas Gagne wrote:
I'm adding a function to PHP
Are you the maintainer of the PHP module ?
No, I just need to access the nodes. I've done some debugging in there so I'm
confident I can copy the code for unlink_node and make it work for me (in fact,
it's working already!). If I get it working I'll send the code in to whoever
does that kind of stuff.
so we can dump nodes as well as documents (that
is, get the XML text).
The first argument to xmlNodeDump() is something called an xmlBufferPtr.
Where do I get one?
xmlBufferCreate()
http://xmlsoft.org/html/libxml-tree.html#XMLBUFFERCREATE
Thanks, it seems to be working. Will the buffer get bigger if it needs to?
It's default size is 4000 bytes, but I expect some node could exceed that.
Also, what is the proper way to deallocate an xmlBufferPtr?
--
.tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]