SelectSingleNode always returns null?
Taking this simplifed example of my XML: <?xml version="1.0"?> <message xmlns="http://www.mydomain.com/MyDataFeed" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mydomain.com/MyDataFeed https://secure.mydomain/MyDataFeed/myDataFeed.xsd" requestId="13898" status="1"> <error>Invalid Login</error> </message> I am trying to select the 'error' node using SelectSingleNode method, however using the following code it always returns NULL? XmlNode errorNode = oss.SelectSingleNode("/message/error"); if (errorNode != null) Console.Writeline("There is an error"); From