2012-01-10 55 views

回答

0

您只需將XML加載到的XElement,並調用元方法來檢索值

//Load from file location 
var errFile = XElement.Load("C:\\YourFile.xml"); 

//Get Element value from xml 
var errorCode = (string)_x.Element("errorCode"); 
相關問題