XNs
@Js
const class XNs : Obj
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.
Construct an XML namespace with the specified prefix and Uri
The prefix used to quality element and attribute names with this namespace's uri
The uri which defines a universally unique namespace
Return the uri as the string representation
Return if this a default namespace which has a prefix of ""
Two namespaces are equal if they have the same uri
Return the uri's hash code
virtual Bool equals(Obj? that)
Two namespaces are equal if they have the same uri.
virtual Int hash()
Return the uri's hash code.
Bool isDefault()
Return if this a default namespace which has a prefix of "".
new make(Str prefix, Uri uri)
Construct an XML namespace with the specified prefix and Uri. Pass "" for prefix if this is the default XML namespace.
const Str : prefix
The prefix used to quality element and attribute names with this namespace's uri. If this is the default namespace prefix is "".
virtual Str toStr()
Return the uri as the string representation.
const Uri : uri
The uri which defines a universally unique namespace.