Re: [xml] Remove all atttributes from a node



On Mon, Feb 06, 2006 at 01:53:58PM -0800, Rush Manbert wrote:
Hi all,

Another one I can't figure out from the docs or the archive.

Does anyone know how to remove all of the attributes from an element 
using the tree API?

  xmlFreePropList(node->properties);
  node->properties = NULL;

This doesn't remove namespace declarations as this is far more complex
and intrusive.

Daniel

-- 
Daniel Veillard      | Red Hat http://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]