Namespace Manager or XsltContext needed

warner95

New Member
I have the following xml;\[code\] <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'> <env:Header> <mm7:TransactionID xmlns:mm7='http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4' env:mustUnderstand='1'>6797324d</mm7:TransactionID> </env:Header> <env:Body> <DeliveryReportReq xmlns='http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4'> <MM7Version>6.8.0</MM7Version><MMSRelayServerID>TARAL</MMSRelayServerID> <MessageID>T*3*T\*4\*855419761</MessageID> <Recipient> <RFC2822Address>+61438922562/TYPE=hidden</RFC2822Address> </Recipient> <Sender> <RFC2822Address>61418225661/TYPE=hidden</RFC2822Address> </Sender> <Date>2011-08-15T12:57:27+10:00</Date> <MMStatus>Retrieved</MMStatus> <StatusText>The message was retrieved by the recipient</StatusText> </DeliveryReportReq> </env:Body> </env:Envelope>\[/code\]So then i have the following c# code;\[code\]XmlDocument xDoc = new XmlDocument();xDoc.LoadXml(file);XmlNode xNode = xDoc.SelectSingleNode("env:Envelope");\[/code\]and i get the error;\[quote\] Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.\[/quote\]anyone know how to fix this?
 
Back
Top