Link to home
Start Free TrialLog in
Avatar of NikWhitfield
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
Avatar of kikkertm
kikkertm

If you want a complate working answer, please post the selectNodes statement and show some example XML..

Do you also need to know how to loop through the Nodelist or just how to remove an attribute (RemoveAttributeNode should do it !) ??

Mike.
Avatar of NikWhitfield

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??!
Send a request to community support.
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial