Re: [xml] copy a chunk into a string
- From: Daniel Veillard <veillard redhat com>
- To: "Kralidis,Tom [Burlington]" <Tom Kralidis ec gc ca>
- Cc: xml gnome org
- Subject: Re: [xml] copy a chunk into a string
- Date: Tue, 4 Dec 2007 06:01:32 -0500
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/
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]