Solved

How do I remove an attribute with MSXML?

Posted on 2002-07-15
4
377 Views
Last Modified: 2008-03-04
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
0
Comment
Question by:NikWhitfield
4 Comments
 
LVL 2

Expert Comment

by:kikkertm
ID: 7154958
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.
0
 

Author Comment

by:NikWhitfield
ID: 7154964
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??!
0
 
LVL 14

Expert Comment

by:avner
ID: 7156314
Send a request to community support.
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7197412
Points refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question