charpentier
Programmer
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=""\>
...
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
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=""\>
...
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