这是XML文件
<?xml version="1.0" encoding="gb2312" standalone="yes" ?>
<root>
  <product1 id="0001" name="product1" price="10.00">
   <!-- <description>I am the first</description> -->
<kinds>fruit</kinds>
  </product1>
  <product2 id="0002" name="product2" price="15.00">
<description>I am the second</description>
<kinds>fruit</kinds>
  </product2>
  <product3 id="0003" name="product3" price="20.00">
<description>I am the third</description>
<kinds>fruit</kinds>
  </product3>
  <product4 id="0004" name="product4" price="25.00">
<description>I am the forth</description>
<kinds>fruit</kinds>
  </product4>
</root>
这是JAVASCRIPT主程序
<script language="javascript">
//alert("haha");
function loadXML(fileName) {
  // 定义一个xml dom对象
   var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
   xmlDoc.load(fileName);
   xmlObj = xmlDoc.documentElement;
if(xmlObj.hasChildNodes){
alert(xmlObj.tagName);
alert("i have "+xmlObj.childNodes[1].childNodes.length+" children");
<!-- i have "+xmlObj.childNodes(1).childNodes.length+" children -->;
}
if(xmlObj.childNodes(1).hasChildrenNodes)
alert("i also have children!");
else
alert("i havent");
  }
loadXML("product.xml");
function dump(string)
{
var current=document.m
}
</script>
请问高手,xml的节点为什么是8个啊,是怎么算的,他的孩子节点是四个,有点不明白?