Re: [xml] manipulating attributes/values

On Tue, Apr 13, 2004 at 05:21:55PM +1000, Roger Reynolds wrote:
One such item is the oraxml function setAttribute(node, name, value)
which will either create a new attribute node under the specified node,
having the specified name and value, or if the node already has an attribute
node with the specified name, replace it's current value with the newly
specified value.

I suppose I need to manually traverse the child nodes of my node, looking
an appropriately named attribute node, and then I can use  xmlNodeSetContent
if I
find one,  or I can create a new attribute node (property) if I don't find

That sound about right?


I appologize in advance for not being as familiar with libxml as I might be.
I have been looking over the code and examples most of the day...

  xmlSetProp() and xmlSetNsProp()

  the tree manipulations routines are usually in the tree module, 


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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