XML Document SelectSingleNode returns null

前端 未结 5 963
你的背包
你的背包 2020-12-08 14:34

I am trying to read XML from stream reader and am also getting response XML. But when i try to read its nodes it is always returning null.

var request = (Htt         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-08 15:11

    You should also be able to do:

    ...
    var node = xmlDocument["RateQuote"];
    ...
    

    The VB syntax for that is:

    ...
    Dim node as XmlNode = xmlDocument("RateQuote")
    ...
    

提交回复
热议问题