DOMElement.SetNamespaceMapping
Syntax variant: Default
Syntax:
Parameters:
<Prefix> (required)
Namespace prefix.
<NamespaceURI> (required)
Namespace URI.
<Map> (optional)
A prefix mapping flag of child elements and attributes for the specified namespace. Attributes are only mapped, if the existing prefix is not empty.
Default value: False.
Description of method variant:
Exception reasons:
- The specified prefix contains characters incompatible with XML standard that corresponds to XML version specified in the XMLVersion property;
- This node is read-only;
- <Prefix> and <NamespaceURI> do not match XML Namespaces specification.
Syntax variant: Automatic prefix creation
Syntax:
Parameters:
<NamespaceURI> (required)
Namespace URI.
<Map> (optional)
A prefix mapping flag of child elements and attributes for the specified namespace. Attributes are only mapped, if the existing prefix is not empty.
Default value: False.
Description of method variant:
Exception reasons:
- The specified namespace URI contains characters incompatible with XML standard that corresponds to XML version specified in the XMLVersion property;
- This node is read-only.
Returned value:
Returns an attribute matching the created mapping. If this prefix has a namespace mapping, no actions are performed, and the returned value is Undefined.
Description:
Availability: