[xml] Removing all of the xml:X attributes from a node
- From: Rush Manbert <rush manbert com>
- To: xml gnome org
- Subject: [xml] Removing all of the xml:X attributes from a node
- Date: Fri, 17 Mar 2006 15:46:46 -0800
I am trying to write a function that removes all attributes from an
element using the tree interface. It seems that xml:lang, xml:id, and
xml:space are special cases, since they have their own get and set
functions.
Do I need to do anything special to remove these attributes from the
node? My current code for "remove all attributes" is this:
inline void
removeAllNodeAttributes (xmlNodePtr pNode)
{
xmlAttrPtr pAttr;
while (NULL != (pAttr = pNode->properties))
{
xmlRemoveProp (pAttr);
}
}
Thanks,
Rush
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]