Question

I am trying to use XDocument for its linq methods.

I have seen doc.Root.GetNamespaceOfPrefix( "i" ) where doc is the XDocument and "i" is the namespace, but, with XmlDocument, I don't have to know about "i".

Was it helpful?

Solution

I think you are looking for XElement.GetDefaultNamespace Method

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top