type
XNs
Models a XML Namespace uri. It also defines a prefix to use to qualify element and attribute names. XNs instances are passed to the constructor of XElem
and XAttr
. You can define the namespace attribute via XAttr.makeNs
.
constructors
make |
Construct an XML namespace with the specified prefix and Uri. |
---|
fields
prefix |
The prefix used to quality element and attribute names with this namespace's uri. |
---|---|
uri |
The uri which defines a universally unique namespace. |
methods
equals |
Two namespaces are equal if they have the same uri. |
---|---|
hash |
Return the uri's hash code. |
isDefault |
Return if this a default namespace which has a prefix of "". |
toStr |
Return the uri as the string representation. |