方法:
1、使用innerText方法(xml没有缩进)
<div class="xmlText"></div>
document.getElementsByClassName('xmlText')[0].innerText=xmlString
2、xmp标签(xml有缩进)
<xmp>xmlString</xmp>
方法:
1、使用innerText方法(xml没有缩进)
<div class="xmlText"></div>
document.getElementsByClassName('xmlText')[0].innerText=xmlString
2、xmp标签(xml有缩进)
<xmp>xmlString</xmp>