这里是个例子<html>
<head>
<script language="javascript">
function window.onload()
{
//操作XML数据
   var doc = xmldoc.documentElement;
   var book = doc.selectSingleNode("book");
   var newbook = book.cloneNode(true);
   newbook.selectSingleNode("title").text = "Applied Microsoft .NET Framework Programming";
   newbook.selectSingleNode("author").text = "Jeffrey Richter";
   doc.appendChild(newbook);
}
</script>
</head>
<body>
<!--客户端数据岛-->
<xml id="xmldoc">
<books>
  <book><title>XSLT Programmer's Reference</title>
<author>Michael H. Kay</author>
  </book>
</books>
</xml>
<!--XML数据岛绑定-->
<table datasrc="#xmldoc" border="1" cellspacing="0" cellpadding="0">
<thead><th>Title</th><th>Author</th></thead>
<tr><td><span datafld="title"></span></td><td><span datafld="author"></span></td></tr>
</table>
</body>