Guys, don't know if this is athe right palce to ask but here it goes.
I have an xml string in a c# programm and want to get a specific element value (which is about five children down from top node). However, there are lots of namespaces within the xml, too.
see below
<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">
<SOAP-ENV:Header><ns:FXTradeVersion ns0:mustUnderstand=\"1 xsi:type=\"xs:string\"
My code below:
Code:
XmlDocument xml = new XmlDocument();
xml.LoadXml(fpml);
XmlNodeList xnList = xml.SelectNodes("SOAP-ENV:Envelope/SOAP-ENV:Body/fpml:TradeAffirmation/fpml:trade/fpml:tradeHeader/fpml:partyTradeIdentifier");
But I get the following exception thrown
Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.
thanks