Two problems:
1) Your
SelectSingleNode
call starts from the document, whereas your
SelectNodes
call starts from the root node.
2) Your
SelectSingleNode
call is looking for nodes in the
"http://schemas.xmlsoap.org/soap/envelope/"
namespace, whereas your
SelectNodes
call is looking for nodes with no namespace.
Try:
Dim totalcost As XmlElement = DirectCast(cfnroot.SelectSingleNode("GetRateQuoteResponse/GetRateQuoteResult/TotalCharges"), XmlElement)