public class

XMLConstants

extends Object
java.lang.Object
   ↳ javax.xml.XMLConstants

Class Overview

Defines several standard constants that are often used during XML processing.

Summary

Constants
String DEFAULT_NS_PREFIX The default namespace prefix.
String FEATURE_SECURE_PROCESSING The SAX feature name for secure processing.
String NULL_NS_URI The namespace URI for the case that no namespace is being used at all.
String RELAXNG_NS_URI The official Relax-NG namespace URI.
String W3C_XML_SCHEMA_INSTANCE_NS_URI The official XSchema instance namespace URI, as defined by W3C.
String W3C_XML_SCHEMA_NS_URI The official XSchema namespace URI, as defined by W3C.
String W3C_XPATH_DATATYPE_NS_URI The official XPath datatype namespace URI, as defined by W3C.
String XMLNS_ATTRIBUTE The official XML namespace attribute, as defined by W3C.
String XMLNS_ATTRIBUTE_NS_URI The official XML namespace attribute URI, as defined by W3C.
String XML_DTD_NS_URI The official XML DTD namespace URI, as defined by W3C.
String XML_NS_PREFIX The official XML namespace prefix, as defined by W3C.
String XML_NS_URI The official XML namespace URI, as defined by W3C.
Public Constructors
XMLConstants()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DEFAULT_NS_PREFIX

The default namespace prefix. Defined to be the empty string.

Constant Value: ""

public static final String FEATURE_SECURE_PROCESSING

The SAX feature name for secure processing. Turning on this feature might result in a parser rejecting XML documents that are considered "insecure" (having a potential for DOS attacks, for example). The Android XML parsing implementation currently ignores this feature.

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

public static final String NULL_NS_URI

The namespace URI for the case that no namespace is being used at all. Defined to be the empty string.

Constant Value: ""

public static final String RELAXNG_NS_URI

The official Relax-NG namespace URI.

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

public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI

The official XSchema instance namespace URI, as defined by W3C.

Constant Value: "http://www.w3.org/2001/XMLSchema-instance"

public static final String W3C_XML_SCHEMA_NS_URI

The official XSchema namespace URI, as defined by W3C.

Constant Value: "http://www.w3.org/2001/XMLSchema"

public static final String W3C_XPATH_DATATYPE_NS_URI

The official XPath datatype namespace URI, as defined by W3C.

Constant Value: "http://www.w3.org/2003/11/xpath-datatypes"

public static final String XMLNS_ATTRIBUTE

The official XML namespace attribute, as defined by W3C.

Constant Value: "xmlns"

public static final String XMLNS_ATTRIBUTE_NS_URI

The official XML namespace attribute URI, as defined by W3C.

Constant Value: "http://www.w3.org/2000/xmlns/"

public static final String XML_DTD_NS_URI

The official XML DTD namespace URI, as defined by W3C.

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

public static final String XML_NS_PREFIX

The official XML namespace prefix, as defined by W3C.

Constant Value: "xml"

public static final String XML_NS_URI

The official XML namespace URI, as defined by W3C.

Constant Value: "http://www.w3.org/XML/1998/namespace"

Public Constructors

public XMLConstants ()