以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  [求助]如何过滤掉xml文件的前n行信息,使dataset不读取?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=45734)


--  作者:piedra
--  发布时间:4/20/2007 2:51:00 PM

--  [求助]如何过滤掉xml文件的前n行信息,使dataset不读取?
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:exportDataResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://database.njpwzx.com"><exportDataReturn soapenc:arrayType="xsd:anyType[1008]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><exportDataReturn href="#id0"/><exportDataReturn href="#id1"/><exportDataReturn href="#id2"/><exportDataReturn href="#id3"/><exportDataReturn href="#id4"/><exportDataReturn ...

用DataSet读取XML中的节点数据时,报异常“根级别上的数据无效。 行 1,位置 1。”
说是要过滤掉开头的字符串,怎么过滤?


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