看看具体什么错
----------------------
<div id=oDiv></div>
<script>
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.5.0");
xmlDoc.async = false;
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode != 0) {
  alert("A parse error occurred.");
  var str = 'XML Parse Error --> <br>'
  str += 'url: ' + xmlDoc.parseError.url + '<br>'
  str += 'errorCode: ' + xmlDoc.parseError.errorCode + '<br>'
  str += 'line: ' + xmlDoc.parseError.line + '<br>'
  str += 'linepos: ' + xmlDoc.parseError.linepos + '<br>'
  str += 'reason: ' + xmlDoc.parseError.reason + '<br>'
  oDiv.innerHTML = str
} else {
  alert(xmlDoc.documentElement.xml);
}
</script>