Template:Team:Paris Saclay/simbox
From 2013.igem.org
(Difference between revisions)
Line 41: | Line 41: | ||
var parser= new DOMParser(); | var parser= new DOMParser(); | ||
xmldata= parser.parseFromString(xhr.responseText, "application/xml"); | xmldata= parser.parseFromString(xhr.responseText, "application/xml"); | ||
+ | if(xmldata.documentElement.nodeName != 'xml') | ||
+ | throw "XML Parsing error."; | ||
} | } | ||
catch(err) | catch(err) |
Revision as of 19:13, 2 August 2013