[xml] how to remove/delete a child node?
- From: Kristine Rudkin <rudkin yahoo com>
- To: xml gnome org
- Subject: [xml] how to remove/delete a child node?
- Date: Wed, 3 Aug 2005 12:43:13 -0700 (PDT)
I'm trying to do something elementary like remove a
child node from a doc (I'm a newbie to libxml2, so
apologies if this is extremely basic.) I've hunted
through the site archives, examples and documents,
and can't seem to find the information I'm looking
for. Is there a xml or xpath function that can
used (or a set type of procedure) to remove a child
node? I'm basically trying to transform this doc:
<root-node>
<child-node>child 1</child-node>
<child-node>child 2</child-node>
</root-node>
to:
<root-node>
<child-node>child 2</child-node>
</root-node>
thanks,
rudkin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]