# XMLConstants

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/javax/xml/XMLConstants#constants)\|[Inherited Methods](https://developer.android.com/reference/javax/xml/XMLConstants#inhmethods)  

# XMLConstants

`
public

final

class
XMLConstants
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | javax.xml.XMLConstants |

<br />

*** ** * ** ***

<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/)

## Summary

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

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### DEFAULT_NS_PREFIX

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String DEFAULT_NS_PREFIX
```

<br />

Prefix to use to represent the default XML Namespace.

Defined by the XML specification to be "".

<br />

<br />

**See also:**

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

Constant Value: ""  

### FEATURE_SECURE_PROCESSING

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String 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 />

<br />

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

### NULL_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String NULL_NS_URI
```

<br />

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

Defined by the Namespace specification to be "".

<br />

<br />

**See also:**

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

Constant Value: ""  

### RELAXNG_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String RELAXNG_NS_URI
```

<br />

RELAX NG Namespace URI.

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

<br />

<br />

**See also:**

- [RELAX NG Specification](http://relaxng.org/spec-20011203.html)

Constant Value: "http://relaxng.org/ns/structure/1.0"  

### W3C_XML_SCHEMA_INSTANCE_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI
```

<br />

W3C XML Schema Instance Namespace URI.

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

<br />

<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"  

### W3C_XML_SCHEMA_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String W3C_XML_SCHEMA_NS_URI
```

<br />

W3C XML Schema Namespace URI.

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

<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"  

### W3C_XPATH_DATATYPE_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String W3C_XPATH_DATATYPE_NS_URI
```

<br />

W3C XPath Datatype Namespace URI.

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

<br />

<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"  

### XMLNS_ATTRIBUTE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String 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 />

<br />

**See also:**

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

Constant Value: "xmlns"  

### XMLNS_ATTRIBUTE_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String XMLNS_ATTRIBUTE_NS_URI
```

<br />

The official XML attribute used for specifying XML Namespace declarations,[XMLConstants.XMLNS_ATTRIBUTE](https://developer.android.com/reference/javax/xml/XMLConstants#XMLNS_ATTRIBUTE), Namespace name URI.

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

<br />

<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/"  

### XML_DTD_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String 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`".

<br />

Constant Value: "http://www.w3.org/TR/REC-xml"  

### XML_NS_PREFIX

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String XML_NS_PREFIX
```

<br />

The official XML Namespace prefix.

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

<br />

<br />

**See also:**

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

Constant Value: "xml"  

### XML_NS_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String 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 />

<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"