I am back with yet another n00b JS DOM question. I finally got all of my XML _parsing_ done (at least I hope so) and now I'm working on code to create an XML object from scratch.
What is the correct way to create an XML document from scratch that I can then send to a server for processing?
I found
Is that correct?
What is the correct way to create an XML document from scratch that I can then send to a server for processing?
I found
Code:
if(window.DOMParser){
xmlDoc = new DOMParser();
}else{
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
}
Is that correct?