# XMLConstants

public final class **XMLConstants** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
<br />

Utility class to contain basic XML values as constants.

<br />

##### See Also

- [Extensible Markup Language (XML) 1.1](http://www.w3.org/TR/xml11/)
- [Extensible Markup Language (XML) 1.0 (Second Edition)](http://www.w3.org/TR/REC-xml)
- [XML 1.0 Second Edition Specification Errata](http://www.w3.org/XML/xml-V10-2e-errata)
- [Namespaces in XML 1.1](http://www.w3.org/TR/xml-names11/)
- [Namespaces in XML](http://www.w3.org/TR/REC-xml-names)
- [Namespaces in XML Errata](http://www.w3.org/XML/xml-names-19990114-errata)
- [XML Schema Part 1: Structures](http://www.w3.org/TR/xmlschema-1/)

### Constant Summary

|---|---|---|
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [DEFAULT_NS_PREFIX](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#DEFAULT_NS_PREFIX) | Prefix to use to represent the default XML Namespace. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [FEATURE_SECURE_PROCESSING](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#FEATURE_SECURE_PROCESSING) | Feature for secure processing. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [NULL_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#NULL_NS_URI) | Namespace URI to use to represent that there is no Namespace. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [RELAXNG_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#RELAXNG_NS_URI) | RELAX NG Namespace URI. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [W3C_XML_SCHEMA_INSTANCE_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#W3C_XML_SCHEMA_INSTANCE_NS_URI) | W3C XML Schema Instance Namespace URI. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [W3C_XML_SCHEMA_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#W3C_XML_SCHEMA_NS_URI) | W3C XML Schema Namespace URI. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [W3C_XPATH_DATATYPE_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#W3C_XPATH_DATATYPE_NS_URI) | W3C XPath Datatype Namespace URI. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [XMLNS_ATTRIBUTE](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XMLNS_ATTRIBUTE) | The official XML attribute used for specifying XML Namespace declarations. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [XMLNS_ATTRIBUTE_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XMLNS_ATTRIBUTE_NS_URI) | The official XML attribute used for specifying XML Namespace declarations, `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XMLNS_ATTRIBUTE`, Namespace name URI. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [XML_DTD_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XML_DTD_NS_URI) | XML Document Type Declaration Namespace URI as an arbitrary value. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [XML_NS_PREFIX](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XML_NS_PREFIX) | The official XML Namespace prefix. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [XML_NS_URI](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XML_NS_URI) | The official XML Namespace name URI. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Constants

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**DEFAULT_NS_PREFIX**

<br />

Prefix to use to represent the default XML Namespace.

Defined by the XML specification to be "".

<br />

##### See Also

- [Namespaces in XML, 3. Qualified Names](http://www.w3.org/TR/REC-xml-names/#ns-qualnames)
Constant Value: ""

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**FEATURE_SECURE_PROCESSING**

<br />

Feature for secure processing.

- `true` instructs the implementation to process XML securely. This may set limits on XML constructs to avoid conditions such as denial of service attacks.
- `false` instructs the implementation to process XML according to the letter of the XML specifications ignoring security issues such as limits on XML constructs to avoid conditions such as denial of service attacks.

<br />

Constant Value: "http://javax.xml.XMLConstants/feature/secure-processing"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**NULL_NS_URI**

<br />

Namespace URI to use to represent that there is no Namespace.

Defined by the Namespace specification to be "".

<br />

##### See Also

- [Namespaces in XML, 5.2 Namespace Defaulting](http://www.w3.org/TR/REC-xml-names/#defaulting)
Constant Value: ""

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**RELAXNG_NS_URI**

<br />

RELAX NG Namespace URI.

Defined to be "`http://relaxng.org/ns/structure/1.0`".

<br />

##### See Also

- [RELAX NG Specification](http://relaxng.org/spec-20011203.html)
Constant Value: "http://relaxng.org/ns/structure/1.0"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**W3C_XML_SCHEMA_INSTANCE_NS_URI**

<br />

W3C XML Schema Instance Namespace URI.

Defined to be "`http://www.w3.org/2001/XMLSchema-instance`".

<br />

##### See Also

- [XML Schema Part 1:
  Structures, 2.6 Schema-Related Markup in Documents Being Validated](http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions)
Constant Value: "http://www.w3.org/2001/XMLSchema-instance"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**W3C_XML_SCHEMA_NS_URI**

<br />

W3C XML Schema Namespace URI.

Defined to be "`http://www.w3.org/2001/XMLSchema`".

##### See Also

- [XML Schema Part 1:
  Structures, 2.6 Schema-Related Markup in Documents Being Validated](http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions)
Constant Value: "http://www.w3.org/2001/XMLSchema"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**W3C_XPATH_DATATYPE_NS_URI**

<br />

W3C XPath Datatype Namespace URI.

Defined to be "`http://www.w3.org/2003/11/xpath-datatypes`".

<br />

##### See Also

- [XQuery 1.0 and XPath 2.0 Data Model](http://www.w3.org/TR/xpath-datamodel)
Constant Value: "http://www.w3.org/2003/11/xpath-datatypes"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**XMLNS_ATTRIBUTE**

<br />

The official XML attribute used for specifying XML Namespace
declarations.

It is ***NOT*** valid to use as a
prefix. Defined by the XML specification to be
"`xmlns`".

<br />

##### See Also

- [Namespaces in XML, 3. Qualified Names](http://www.w3.org/TR/REC-xml-names/#ns-qualnames)
Constant Value: "xmlns"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**XMLNS_ATTRIBUTE_NS_URI**

<br />

The official XML attribute used for specifying XML Namespace
declarations, `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/XMLConstants.html#XMLNS_ATTRIBUTE`, Namespace name URI.

Defined by the XML specification to be
"`http://www.w3.org/2000/xmlns/`".

<br />

##### See Also

- [Namespaces in XML, 3. Qualified Names](http://www.w3.org/TR/REC-xml-names/#ns-qualnames)
- [Namespaces in XML Errata](http://www.w3.org/XML/xml-names-19990114-errata/)
Constant Value: "http://www.w3.org/2000/xmlns/"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**XML_DTD_NS_URI**

<br />

XML Document Type Declaration Namespace URI as an arbitrary value.

Since not formally defined by any existing standard, arbitrarily define to be "`http://www.w3.org/TR/REC-xml`".
Constant Value: "http://www.w3.org/TR/REC-xml"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**XML_NS_PREFIX**

<br />

The official XML Namespace prefix.

Defined by the XML specification to be "`xml`".

<br />

##### See Also

- [Namespaces in XML, 3. Qualified Names](http://www.w3.org/TR/REC-xml-names/#ns-qualnames)
Constant Value: "xml"

#### public static final [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**XML_NS_URI**

<br />

The official XML Namespace name URI.

Defined by the XML specification to be
"`http://www.w3.org/XML/1998/namespace`".

<br />

##### See Also

- [Namespaces in XML, 3. Qualified Names](http://www.w3.org/TR/REC-xml-names/#ns-qualnames)
Constant Value: "http://www.w3.org/XML/1998/namespace"