Hot.xml文件 :
====================================
demo1.html文件:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScript获取XML数据</title>
<script language="javascript">
</script>
</head>
<body onLoad="loadXmlDoc()">
<div id="sales"></div>
</body>
</html>
=============================
效果图: