C#怎么读取Xml文件的节点值
<?xml version="1.0" encoding="GBK"?>
-<smartresult>  
   -<product type="ip">  
      <ip>49.76.255.175</ip>  
      <location>美国 亚利桑那州JITCNET</location>  
   </product>  
</smartresult>
我请求某个服务器返回的xml数据,
我想把<ip></ip>和<location></locaton>里的值取出来显示在界面上。怎么做。
------解决方案--------------------
参考http://topic.csdn.net/u/20120421/20/7c878b85-9f8f-4bfb-b66a-232d9db421b7.html
------解决方案--------------------
doc.SelectSingleNode("/smartresult/product/ip").InnerText
doc.SelectSingleNode("/smartresult/product/location").InnerText