Extensions.CreateNavigator Method (XNode, XmlNameTable)
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
static member CreateNavigator : node:XNode * nameTable:XmlNameTable -> XPathNavigator
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type XNode. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Namespace declarations are reported from left to right. In contrast, for XmlDocument namespaces are reported from right to left. This is conformant behavior because namespace declarations are not ordered in the XPath data model.
The method MoveToId is not supported for navigators that are returned by this method.