Vra

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 dit nuttig?

Oplossing

I think you are looking for XElement.GetDefaultNamespace Method

Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top