日期:2014-05-18 浏览次数:20409 次
<test ID="1" col1="1" col2="b" col3="1" /> <test ID="2" col1="1" col2="c" col3="4" /> <test ID="3" col1="1" col2="a" col3="9" /> <test ID="4" col1="1" col2="b" col3="16" /> <test ID="5" col1="1" col2="c" col3="25" /> <test ID="6" col1="1" col2="a" col3="36" /> <test ID="7" col1="1" col2="b" col3="49" />
System.Xml.XmlReader xr = Command.ExecuteXmlReader(); xr.Read(); while (!xr.EOF) { Response.Write(Server.HtmlEncode(xr.ReadOuterXml())); } xr.Close();