xml id=
users
>
<userGroup>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
<user id=>
<userid>user </userid>
<name>name </name>
</user>
</userGroup>
</xml>
<table id=datatable datasrc=#users DATAPAGESIZE= width= border=>
<thead>
<th>数据 userid</th>
<th>数据 name</th>
<th>属性 id</th>
</thead>
<tr>
<td><span datafld=userid></span></td>
<td><span datafld=name></span></td>
<td><span datafld=id></span></td>
</tr>
</table>
<button onclick=documentalldatatablepreviousPage()>Previous Page</button>
<button onclick=documentalldatatablenextPage()>Next Page</button>
直接复制就行
如果你的xml在外部则要引用xml如
<xml id=users src=userxml>
</xml>
如果你要添加超链接在(td)文本中则使用
<a datafld=useid onmouseover=if(thischangged == null) { thishref =###aspx?+thishref; thischanged=true}><span datafld=name></sapn></a>