Click or drag to resize
IDocumentCreateAttributeNS Method
Creates an attribute of the given qualified name and namespace URI. HTML-only DOM implementations do not need to implement this method.

Namespace: Telerik.Windows.Documents.FormatProviders.Html.Parsing.Dom
Assembly: Telerik.Windows.Documents.FormatProviders.Html (in Telerik.Windows.Documents.FormatProviders.Html.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
IAttr CreateAttributeNS(
	string namespaceUri,
	string qualifiedName
)

Parameters

namespaceUri
Type: SystemString
qualifiedName
Type: SystemString

Return Value

Type: IAttr
A new
Attr
object with the following attributes: AttributeValue
Node.nodeName
qualifiedName
Node.namespaceURI
namespaceURI
Node.prefix
prefix, extracted from
qualifiedName
, or
null
if there is no prefix
Node.localName
local name, extracted from
qualifiedName
Attr.name
qualifiedName
Node.nodeValue
the empty string
Exceptions
ExceptionCondition
DomException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NAMESPACE_ERR: Raised if the
qualifiedName
is malformed, if the
qualifiedName
has a prefix and the
namespaceURI
is
null
, if the
qualifiedName
has a prefix that is "xml" and the
namespaceURI
is different from " http://www.w3.org/XML/1998/namespace", or if the
qualifiedName
is "xmlns" and the
namespaceURI
is different from " http://www.w3.org/2000/xmlns/".
See Also