Generally, xml files will be parsed, but it may be a problem for new users if there is a namespace of xml with a prefix. I encountered a question in the forum. For more information, see how to obtain the content in the XML node. Here is a demonstration. Its structure is like this: [plain] <? Xml version = "1.0" encoding = "UTF-8"?> <SOAP-ENV: Envelope xmlns: SOAP-ENV = "http://www.jiangsuedu.net/justone/"> <SOAP-ENV: Header> <TransactionID> 110000000001 </TransactionID> <ServiceType>/sms/mt </ServiceType> </SOAP-ENV: header> <SOAP-ENV: body> <GateWayID> YNMC </GateWayID> <DstID> 15125664368 </DstID> <SrcID> 099879 </SrcID> <FeeID> 15125664368 </FeeID> <LinkID/> <MsgContent> Haha </MsgContent> <ServiceID> AYN3913101 </ServiceID> <MsgID> 1234 </MsgID> <CommitTime> 201311130101022 </CommitTime> </SOAP-ENV: Body> </SOAP-ENV: Envelope> for example, if we want to retrieve the content under the MsgContent node, we will return an error. For example: [csharp] XmlDocument doc = new XmlDocument (); doc. load ("test. xml "); string value = doc. selectSingleNode ("/SOAP-ENV: Envelope/SOAP-ENV: Body/MsgContent "). innerText; here, the value will be abnormal. According to the error prompt, we have already reminded us to need the namespace manager. [Csharp] XmlDocument doc = new XmlDocument (); doc. load ("test. xml "); XmlElement root = doc. documentElement; string nameSpace = root. namespaceURI; XmlNamespaceManager nsmgr = new XmlNamespaceManager (doc. nameTable); nsmgr. addNamespace ("SOAP-ENV", nameSpace); string value = doc. selectSingleNode ("/SOAP-ENV: Envelope/SOAP-ENV: Body/MsgContent", nsmgr ). innerText; Console. writeLine (value); // output: Haha now we add X MlNamespaceManage is processed and the desired content is obtained successfully.