<asp:Repeater ID="xml1" runat="server"
DataSourceID="XmlDataSource1">
<ItemTemplate>
<ul>
<li style="color: Blue;">
序号:<%#Container.ItemIndex%>
《<%#
Server.HtmlEncode(XPath("name").ToString())
%>》</li>
<li><%#
Server.HtmlEncode(XPath("mark").ToString())%></li>
<li><b>数量:</b><%#
XPath("quantity")%> <b>价格:</b><%#
XPath("price")%> <b>作者:</b><%#
XPath("author")%></li>
</ul>
<hr />
</ItemTemplate>
</asp:Repeater>
<asp:XmlDataSource
runat="server"
DataFile="~/data/test.xml"></asp:XmlDataSource>