SelectSingleNode always returns null?

You're missing the XML namespace defined by the message node in your SelectSingleNode call. Assuming oss is an XmlDocument instance, you need to do this.

You're missing the XML namespace defined by the node in your SelectSingleNode call. Assuming oss is an XmlDocument instance, you need to do this: XmlNamespaceManager nsMgr = new XmlNamespaceManager(oss. NameTable); nsMgr.

AddNamespace("ns", "mydomain.com/MyDataFeed"); XmlNode errorNode = oss. SelectSingleNode("/ns:message/ns:error", nsMgr); Marc.

But of course! The XML weenies have a lot to answer for. – Oliver Bock May 16 '11 at 5:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions