Solved

How do I remove an attribute with MSXML?

Posted on 2002-07-15
4
375 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Extract XML data and load into database (possible approaches) 5 34
xml attribute DTD attribute differences 3 65
Problem to event 3 78
ASP.NET reading ATOM 2 52
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…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now