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?

  node->properties = NULL;

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


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