XElementExtensionsRemoveAllNamespaces Method
Removes all namespaces on the source XElement.
Namespace: DevCase.Extensions.XElementExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static XElement RemoveAllNamespaces(
this XElement sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function RemoveAllNamespaces (
sender As XElement
) As XElement
Dim sender As XElement
Dim returnValue As XElement
returnValue = sender.RemoveAllNamespaces()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static XElement^ RemoveAllNamespaces(
XElement^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member RemoveAllNamespaces :
sender : XElement -> XElement
No code example is currently available or this language may not be supported.
- sender XElement
-
The source XElement.
XElement
The resulting
XElement.
In Visual Basic and C#, you can call this method as an instance method on any object of type
XElement. 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).
This is a code example.
No code example is currently available or this language may not be supported.
Dim element As XElement = XElement.Parse("abc def ghi")
Dim elementWithoutNamespaces As XElement = element.RemoveAllNamespaces()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.