Re: [xml] how to change value of an attribute not attached to element



On Wed, Jan 16, 2002 at 04:20:57PM +0100, Petr Kozelka wrote:
If  it is not currently possible, I suggest to add this possibility to the
xmlNodeSetContent() function, which currently does nothing with attribute
nodes.
(I hope it is a correct place, because xmlNodeGetContent() explicitly
handles XML_ATTRIBUTE_NODE)

  Right, it sounds this very simple patch could suffice to achieve this,
could you try it:

http://cvs.gnome.org/bonsai/cvsview2.cgi?command=DIFF&subdir=gnome-xml&file=tree.c&rev1=1.178&rev2=1.179&whitespace_mode=show&diff_mode=context

  thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
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]