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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about the createElement function

Status
Not open for further replies.

charpentier

Programmer
Mar 19, 2001
1
US
My question is: how creating a child, from a given tag, and then fill the attributes with given values?
Below is what i did, a junk attribute is there, and i can't get rid of it!


xDox is a IXMLDOMDocument2Ptr
xElement is a IXMLDOMElementPtr

xElement = xDoc->createElement("new");

Then using the appendChild function, it writes the following code

...
<new xmlns=&quot;&quot;\>
...

It is fine for the tag value. But i don't want any attributes and this one seems to be a default one in my document. My problem is that i can't delete it!!! Or i can't modify it, using the removeAttribute function, or setAttribute function.


Thanks a lot for any advises,

Yvan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top