[xml] Saving an element into memory



Hi all,

I need to accomplish the following task:

1. read an XML document into memory
2. traverse to a child element of the root node
3. save that child element into a memory buffer as a standalone XML document, so that it can be reprocessed as an XML document at a much later stage.

How can I accomplish this using libxml? I think (although I'm not sure) that xmlElemDump() does something like this, but the problem is that it saves to a file, not to a memory buffer. If somebody could help me, that would be really cool.

TIA,
-Andrew Nesbit



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]