Re: [xml] Is it okay to add a node as the first child?
- From: Jason Viers <lists beanalby net>
- To: Rush Manbert <rush manbert com>
- Cc: xml gnome org
- Subject: Re: [xml] Is it okay to add a node as the first child?
- Date: Fri, 04 May 2007 17:50:33 -0400
Rush Manbert wrote:
I see that the tree API functions for adding nodes (xmlNewNode(),
xmlAddNode(), etc) all add the node to the end of the child list.
I believe I have a case where I need to add a new node at the beginning
of the child list.
You could call xmlAddPrevSibling and add the new node as the previous
sibling of the first node.
Jason
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]