Construct a QName from a lexical QName, supplying an element node whose in-scope namespaces are to be used to resolve any prefix contained in the QName.
prefix:localor simply
local
.This constructor checks that the components of the QName are lexically valid.
If the lexical QName has no prefix, the name is considered to be in the
default namespace, as defined by xmlns="..."
.
If the prefix of the lexical QName is not in scope, returns null.
Exception Type | Condition |
---|---|
ArgumentException | If the prefix of the lexical QName is not in scope |
ArgumentException | If the lexical QName is invalid (for example, if it contains invalid characters) |
QName Class | Saxon.Api Namespace | QName Constructor Overload List