?
Solved

How do I remove an attribute with MSXML?

Posted on 2002-07-15
4
Medium Priority
?
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

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

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.
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

752 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