我试图将 xml 文件解析为 html。所以我atm跟着
<script>
xmlDoc=new window.XMLHttpRequest();
xmlDoc.open("GET","test",false);
xmlDoc.send("");
</script>
现在我想“回应”这个请求,我该怎么做
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
</catalog>