const class xml::XNs

sys::Obj
  xml::XNs

@Js

Source

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.

equals

virtual override Bool equals(Obj? that)

Source

Two namespaces are equal if they have the same uri.

hash

virtual override Int hash()

Source

Return the uri's hash code.

isDefault

Bool isDefault()

Source

Return if this a default namespace which has a prefix of "".

make

new make(Str prefix, Uri uri)

Source

Construct an XML namespace with the specified prefix and Uri. Pass "" for prefix if this is the default XML namespace.

prefix

const Str prefix

Source

The prefix used to quality element and attribute names with this namespace's uri. If this is the default namespace prefix is "".

toStr

virtual override Str toStr()

Source

Return the uri as the string representation.

uri

const Uri uri

Source

The uri which defines a universally unique namespace.