Hello Friends,
I am stuck wit a problem.How to add an attribute to XMLDom Object's TAG.Suppose i have the following code.
var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");
var objXMLDOM = new ActiveXObject("Microsoft.XMLDOM");
objXMLDOM.loadXML('<Screen Action="" UserName="" Password="" >');
var objScreen = objXMLDOM.selectSingleNode("Screen");
objHTTP.send(objXMLDOM);
Now,Problem here is i want to build the RED statement at runtime.i.e. i want to add some attribute to that TAG(screen).i want to change that statement like this.
objXMLDOM.loadXML('<Screen Action="" UserName="" Password="" NewPassword=""/>');
HOW TO DO THAT? is there something like addXMLAttribute().
Nitin
[email protected]
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).