On Mon, Dec 03, 2007 at 11:26:40AM -0500, Kralidis,Tom [Burlington] wrote: > > Hi, > > I'm using libxml2 Version: 2.6.29 on fc7, with the xpath functionality, > to parse an XML document. > > I have a situation where I would like to copy a structure at a given node to > a string, i.e.: > > <person> > <name> > <first>foo</first> > <last>bar</last> > </name> > </person> > > ...so I am looking to save "<name><first>foo</first><last>bar</last></name>" > to a string. > > Are there any functions in libxml2 or approaches anyone can suggest?
http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveTree See the xmlSave API module, > Thanks in advance. for reading the docs :-) Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
