Re: [xml] Remove all atttributes from a node
- From: Rush Manbert <rush manbert com>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] Remove all atttributes from a node
- Date: Tue, 07 Feb 2006 10:57:46 -0800
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?
xmlFreePropList(node->properties);
node->properties = NULL;
This doesn't remove namespace declarations as this is far more complex
and intrusive.
Daniel
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]