I have an XML returned from a REST call and I need to use xdoc.SelectNodes, however the XML has a namespace.
Sample XML
<SubscriptionOperationCollection xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<SubscriptionOperations>
<subscriptionOperation>...</SubscriptionOperation>
</SubscriptionOperations>
Question: Is there any way to use selectNodes() without specifying the namespace? My hesitation is in case the namespaces change in the future.
C#
// This returns 0, should return 1
xdoc.SelectNodes("/SubscriptionOperationCollection/SubscriptionOperations").Count;