Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing node attributes

Status
Not open for further replies.

R3N3G4D3

Programmer
Jun 21, 2005
1
US
I'm working with MSXML in Visual C++ (using MFC) trying to write a small program for working with XML files. Since I had no prior experience with XML, it's hard for me to figure out how to make C++ work with it. I wrote a part that opens an XML file and creates a nodeList of elements with a certain tag. Then I made my program go through the nodeList selecting every node. Now I need to change one of the attributes for all of these nodes. The "Value" attribute is set to different number for each node of that name, I need to go through the list and set them all to the same value. The closest function I found to do what I need is SetAttribute(attribute, value), the only problem is it's a member function of XmlElement, and I'm working with XMLDOMNode. I appreciate any help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top