2012-10-22 52 views

回答

0
string s = myXDocument.ToString();//my XDocument corresponds to our existing XDocument 
XPathDocument xpath = new XPathDocument(new StringReader(s)); 
     XPathNavigator pathnavigator= xpath .CreateNavigator(); 
     XmlNamespaceManager nsmgr = new XmlNamespaceManager(pathnavigator.NameTable); 
相關問題