NikWhitfield
asked on
How do I remove an attribute with MSXML?
Hi,
I'm returning a iXMLDOMNodeList from the selectNodes method and each of these is an attribute.
I need to be able to loop through this list, deleting each attribute as I go. Anyone, know how I can achieve this?
Cheers,
Nik
I'm returning a iXMLDOMNodeList from the selectNodes method and each of these is an attribute.
I need to be able to loop through this list, deleting each attribute as I go. Anyone, know how I can achieve this?
Cheers,
Nik
ASKER
It's OK, I've just changed the XPath to return the nodes which have a particular attribute, rather than the attribute itself. That way I can delete from the Node's attribute collection.
Any idea how I go about deleting a question these days??!
Any idea how I go about deleting a question these days??!
Send a request to community support.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Do you also need to know how to loop through the Nodelist or just how to remove an attribute (RemoveAttributeNode should do it !) ??
Mike.