急!!!!为什么我用selectsinglenode总是返回空值?????(100分)

  • 主题发起人 主题发起人 city_hunter_963
  • 开始时间 开始时间
C

city_hunter_963

Unregistered / Unconfirmed
GUEST, unregistred user!
[:(]
代码:
dim xml_str
Set xmldoc=Server.CreateObject("Microsoft.XMLDOM")
Set xmldoc2=Server.CreateObject("Microsoft.XMLDOM")  
xmldoc.async=false
xmldoc2.async=false

  If not xmldoc.load(Server.MapPath("getorder.xml")) then
     Response.write xmldoc.parseError.reason 
  else
    Response.Write xmldoc.XML
  End If
set node1=xmldoc.documentelement.selectsinglenode("data") 
if node1 is nothing then
 response.write "失败"
getorder.xml文件
<?xml version="1.0" encoding="GB2312"?><Root xmlns:dt="urn:schemas-microsoft-com:datatypes">
<xml><fileDigest><Guid>0757939BBF1446C4A4526FA352B462DC</Guid><fileName>gjywshl.xml</fileName><or
derId>13810C002178A0</orderId><orderType>国际业务咨询
</orderType><opType>gjywshl</opType><clientName>客戶無提供
CNCBD-387</clientName><appDate>2003-01-17</appDate><appName></appName><acceptDate></acceptDate><i
sDeal>Y</isDeal><SerCode>V</SerCode><BillCode>F</BillCode><serType>国际业务咨询
</serType><attachment><attachType>rwfj</attachType><attachType>xmgz</attachType></attachment></fi
leDigest><data><optText></optText><OrderID>13810C002178A0</OrderID><submitName>hunggrace</submitN
ame><submitDept>GCBD</submitDept><subDate>2003-1-21</subDate><submitTel>852-31083898</submitTel><
submitMp>852-92513216</submitMp><submitEmail>hunggrace@china-netcom.com</submitEmail><priLevel>铜
牌</priLevel><keNeng>50</keNeng><Currency>港币
</Currency><yuZhu>5997</yuZhu><yiCiFei>3000</yiCiFei><inCarrierName>NT&amp;amp;T</inCarrierName><Cont
actPerson>Camy
Lee</ContactPerson><ContactTel>852-21128672</ContactTel><ContactEmail>NIL</ContactEmail><ContactF
ax>NIL</ContactFax><custCnName>客戶無提供 CNCBD-387</custCnName><postAddress>广州市, 番禺区,
市桥镇, 汀根村大板工业区1街20号</postAddress><userName>NIL</userName><userTel>20-84897122
ext.28</userTel><userEmail>NIL</userEmail><userFax>NIL</userFax><netProvider>合作提供
</netProvider><realType>IPLC</realType><itmc>广州;</itmc><describe>Pls kindly provide quotation
for both V.35 and
G.703</describe><techDetail></techDetail><techManager></techManager><TechProj></TechProj><jieruTy
pe>A</jieruType><submitOnce>A</submitOnce><timeSpan></timeSpan><feiYong></feiYong><modelNumber></
modelNumber><unitAmount></unitAmount><quantity></quantity><installationCost></installationCost><N
eedDM>否</NeedDM><braComments></braComments><braName>路
</braName><braRevDate></braRevDate><braSubDate></braSubDate><offComments></offComments><offName><
/offName><offRevDate></offRevDate><offSubDate></offSubDate><ispComments></ispComments><ispName></
ispName><ispRevDate></ispRevDate><ispSubDate></ispSubDate><guojiComments></guojiComments><guojiPe
rson></guojiPerson><guojiRevDate></guojiRevDate><guojiSubDate></guojiSubDate><remarks></remarks><
cnclinkRes></cnclinkRes><otherlinkRes></otherlinkRes><oldRes></oldRes><newRes></newRes><preFee></
preFee><dx></dx><lt></lt><yd></yd><gd></gd><tt></tt><qt></qt><dls></dls><curVersion>1.3</curVersi
on></data><cnc_transferInfo><Province>香港</Province><City>香港
</City><StartTermAddr></StartTermAddr><ReqType>半电路
</ReqType><StartIntType>v.35</StartIntType><lineBaud>256K</lineBaud><LineQty>1</LineQty><tranLine
Type>SDH</tranLineType><upTime>尽快</upTime><endProvince>广东</endProvince><endCity>广州
</endCity><EndTermAddr></EndTermAddr></cnc_transferInfo></xml>
</Root>

 
这里写错了
set node1=xmldoc.documentelement.selectsinglenode("data")
应该是
set node1=xmldoc.documentelement.selectsinglenode("OrderID")
请给予解答,是不是我 xml 文件不是WELL-FORMED!!!急!!!!!
 
上个问题1765200 你怎么解决的?
你用ie解析看看是不是WELL-FORMED
 
后退
顶部