Re: [xml] Remove all atttributes from a node

Daniel Veillard wrote:
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.


Thanks. I specifically want to keep the namespace declaration, which is why I need to modify this one, rather than just replace it.

- Rush

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