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

Re: [xml] Saving an element into memory



On Wed, Dec 19, 2001 at 02:25:30PM +1100, Andrew Nesbit wrote:
> 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.

  xmlNodeDump()
    http://xmlsoft.org/html/libxml-tree.html#XMLNODEDUMP

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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