<script type="text/javascript" src="/example/xdom/loadxmldoc.js">
<script type="text/javascript">
function get_lastchild(n)
xmlDoc=loadXMLDoc("/example/xdom/books.xml");
document.write("book 节点的数目:");
document.write(xmlDoc.getElementsByTagName('book').length);