0
IEや他のブラウザでdojo(Ajax)を使用してXMLを解析したいと考えています。IEのdojo(Ajax)エラーのコード化が原因でコード化されました。
例はJavaScript道場:
ar xhrArgs = {
url: link,
sync:true,
preventCache:true,
load: function(responseresponse,ioArgs){
var dom = dojox.xml.parser.parse(responseresponse);
var docNode = dom.documentElement;
}
error: function(error){
alert("An unexpected error occurred: " + error);
//IN IE go to here if the XML have characters like this áéí an others
}
例XML:
<?xml version=\1.0\ encoding=\ISO-8859-1\ ?>
<xml>
<accountNumber>áéíóú</accountNumber>
</xml>