InternalXmlHelper.RemoveNamespaceAttributes Method

Definition

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

Overloads

RemoveNamespaceAttributes(String[], XNamespace[], List<XAttribute>, IEnumerable)

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

RemoveNamespaceAttributes(String[], XNamespace[], List<XAttribute>, Object)

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

RemoveNamespaceAttributes(String[], XNamespace[], List<XAttribute>, XElement)

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

RemoveNamespaceAttributes(String[], XNamespace[], List<XAttribute>, IEnumerable)

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

C#
public static System.Collections.IEnumerable RemoveNamespaceAttributes(string[] inScopePrefixes, System.Xml.Linq.XNamespace[] inScopeNs, System.Collections.Generic.List<System.Xml.Linq.XAttribute> attributes, System.Collections.IEnumerable obj);

Parameters

inScopePrefixes
String[]

The list of XML namespace prefixes for XML elements in the current scope.

inScopeNs
XNamespace[]

The list of XML namespaces for XML elements in the current scope.

attributes
List<XAttribute>

The list of namespace attributes to remove from the XML element.

obj
IEnumerable

The XML element to remove XML namespace attributes from.

Returns

The supplied XML element with the specified XML namespace attributes removed.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RemoveNamespaceAttributes(String[], XNamespace[], List<XAttribute>, Object)

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

C#
public static object RemoveNamespaceAttributes(string[] inScopePrefixes, System.Xml.Linq.XNamespace[] inScopeNs, System.Collections.Generic.List<System.Xml.Linq.XAttribute> attributes, object obj);

Parameters

inScopePrefixes
String[]

The list of XML namespace prefixes for XML elements in the current scope.

inScopeNs
XNamespace[]

The list of XML namespaces for XML elements in the current scope.

attributes
List<XAttribute>

The list of namespace attributes to remove from the XML element.

obj
Object

The XML element to remove XML namespace attributes from.

Returns

The supplied XML element with the specified XML namespace attributes removed.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RemoveNamespaceAttributes(String[], XNamespace[], List<XAttribute>, XElement)

Removes XML namespace attributes from an XML element. This method is not intended to be used from your code.

C#
public static System.Xml.Linq.XElement RemoveNamespaceAttributes(string[] inScopePrefixes, System.Xml.Linq.XNamespace[] inScopeNs, System.Collections.Generic.List<System.Xml.Linq.XAttribute> attributes, System.Xml.Linq.XElement e);

Parameters

inScopePrefixes
String[]

The list of XML namespace prefixes for XML elements in the current scope.

inScopeNs
XNamespace[]

The list of XML namespaces for XML elements in the current scope.

attributes
List<XAttribute>

The list of namespace attributes to remove from the XML element.

e
XElement

The XML element to remove XML namespace attributes from.

Returns

The supplied XML element with the specified XML namespace attributes removed.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1