以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  xml 数据显示  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=16885)


--  作者:huing
--  发布时间:4/12/2005 1:27:00 PM

--  xml 数据显示
如何把xml文件中对应的信息取出在页面上显示

例如 在Customer.xml文件中

  <Customer>
    <CustomerID>1</CustomerID>
    <CustomerName>aaa</CustomerName>
    <CustType>1</CustType>
    <CustCountry>1</CustCountry>
    <CustProvince>10 boxes x 20 bags</CustProvince>
    <CustAddress>18</CustAddress>
    <UnitsInStock>39</UnitsInStock>
    <UnitsOnOrder>0</UnitsOnOrder>
    <CustZip>10</CustZip>
    <Discontinued>false</Discontinued>
  </Customer>

如何通过一个CustomerID的值把这个Customer的所有信息全部取出显示在页面上

就是页面上有几个 textbox, 如何把让TextBox 显示对应的值

例如 CustomerNameTxt.Txt = ???  CustomerTypeTxt.Text = ????


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms