The value of a QName contains a Namespace
URI, local part and
prefix.
The prefix is included in QName to retain lexical
information when present in an XML input source . The prefix is
NOT used in QName.equals(Object) or to compute the QName.hashCode() . Equality and the hash code are defined using
only the Namespace URI and local part.
QNamerepresents a qualified name as defined in the XML specifications: XML Schema Part2: Datatypes specification, Namespaces in XML, Namespaces in XML Errata.The value of a
QNamecontains a Namespace URI, local part and prefix.The prefix is included in
QNameto retain lexical information when present in an XML input source . The prefix is NOT used in QName.equals(Object) or to compute the QName.hashCode() . Equality and the hash code are defined using only the Namespace URI and local part.If not specified, the Namespace URI is set to XMLConstants.NULL_NS_URI . If not specified, the prefix is set to XMLConstants.DEFAULT_NS_PREFIX .
QNameis immutable.