Solved

How do I remove an attribute with MSXML?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

707 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

15 Experts available now in Live!

Get 1:1 Help Now