Stay organized with collections
Save and categorize content based on your preferences.
XMLConstants
class XMLConstants
Utility class to contain basic XML values as constants.
Summary
Constants |
static String |
Prefix to use to represent the default XML Namespace.
|
static String |
Feature for secure processing.
|
static String |
Namespace URI to use to represent that there is no Namespace.
|
static String |
RELAX NG Namespace URI.
|
static String |
W3C XML Schema Instance Namespace URI.
|
static String |
W3C XML Schema Namespace URI.
|
static String |
W3C XPath Datatype Namespace URI.
|
static String |
The official XML attribute used for specifying XML Namespace declarations.
|
static String |
The official XML attribute used for specifying XML Namespace declarations, XMLConstants.XMLNS_ATTRIBUTE , Namespace name URI.
|
static String |
XML Document Type Declaration Namespace URI as an arbitrary value.
|
static String |
The official XML Namespace prefix.
|
static String |
The official XML Namespace name URI.
|
Constants
DEFAULT_NS_PREFIX
static val DEFAULT_NS_PREFIX: String
Prefix to use to represent the default XML Namespace.
Defined by the XML specification to be "".
Value: ""
FEATURE_SECURE_PROCESSING
static val FEATURE_SECURE_PROCESSING: String
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.
Value: "http://javax.xml.XMLConstants/feature/secure-processing"
NULL_NS_URI
static val NULL_NS_URI: String
Namespace URI to use to represent that there is no Namespace.
Defined by the Namespace specification to be "".
Value: ""
RELAXNG_NS_URI
static val RELAXNG_NS_URI: String
RELAX NG Namespace URI.
Defined to be "http://relaxng.org/ns/structure/1.0
".
Value: "http://relaxng.org/ns/structure/1.0"
W3C_XML_SCHEMA_INSTANCE_NS_URI
static val W3C_XML_SCHEMA_INSTANCE_NS_URI: String
W3C XML Schema Instance Namespace URI.
Defined to be "http://www.w3.org/2001/XMLSchema-instance
".
Value: "http://www.w3.org/2001/XMLSchema-instance"
W3C_XML_SCHEMA_NS_URI
static val W3C_XML_SCHEMA_NS_URI: String
W3C XML Schema Namespace URI.
Defined to be "http://www.w3.org/2001/XMLSchema
".
Value: "http://www.w3.org/2001/XMLSchema"
W3C_XPATH_DATATYPE_NS_URI
static val W3C_XPATH_DATATYPE_NS_URI: String
W3C XPath Datatype Namespace URI.
Defined to be "http://www.w3.org/2003/11/xpath-datatypes
".
Value: "http://www.w3.org/2003/11/xpath-datatypes"
XMLNS_ATTRIBUTE
static val XMLNS_ATTRIBUTE: String
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
".
Value: "xmlns"
XMLNS_ATTRIBUTE_NS_URI
static val XMLNS_ATTRIBUTE_NS_URI: String
The official XML attribute used for specifying XML Namespace declarations, XMLConstants.XMLNS_ATTRIBUTE
, Namespace name URI.
Defined by the XML specification to be "http://www.w3.org/2000/xmlns/
".
Value: "http://www.w3.org/2000/xmlns/"
XML_DTD_NS_URI
static val XML_DTD_NS_URI: String
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
".
Value: "http://www.w3.org/TR/REC-xml"
XML_NS_PREFIX
static val XML_NS_PREFIX: String
The official XML Namespace prefix.
Defined by the XML specification to be "xml
".
Value: "xml"
XML_NS_URI
static val XML_NS_URI: String
The official XML Namespace name URI.
Defined by the XML specification to be "http://www.w3.org/XML/1998/namespace
".
Value: "http://www.w3.org/XML/1998/namespace"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# XMLConstants\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nXMLConstants\n============\n\n```\nclass XMLConstants\n```\n\n|---|-----------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [javax.xml.XMLConstants](#) |\n\nUtility class to contain basic XML values as constants.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_NS_PREFIX](#DEFAULT_NS_PREFIX:kotlin.String) Prefix to use to represent the default XML Namespace. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FEATURE_SECURE_PROCESSING](#FEATURE_SECURE_PROCESSING:kotlin.String) Feature for secure processing. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NULL_NS_URI](#NULL_NS_URI:kotlin.String) Namespace URI to use to represent that there is no Namespace. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [RELAXNG_NS_URI](#RELAXNG_NS_URI:kotlin.String) RELAX NG Namespace URI. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [W3C_XML_SCHEMA_INSTANCE_NS_URI](#W3C_XML_SCHEMA_INSTANCE_NS_URI:kotlin.String) W3C XML Schema Instance Namespace URI. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [W3C_XML_SCHEMA_NS_URI](#W3C_XML_SCHEMA_NS_URI:kotlin.String) W3C XML Schema Namespace URI. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [W3C_XPATH_DATATYPE_NS_URI](#W3C_XPATH_DATATYPE_NS_URI:kotlin.String) W3C XPath Datatype Namespace URI. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [XMLNS_ATTRIBUTE](#XMLNS_ATTRIBUTE:kotlin.String) The official XML attribute used for specifying XML Namespace declarations. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [XMLNS_ATTRIBUTE_NS_URI](#XMLNS_ATTRIBUTE_NS_URI:kotlin.String) The official XML attribute used for specifying XML Namespace declarations, [XMLConstants.XMLNS_ATTRIBUTE](#XMLNS_ATTRIBUTE:kotlin.String), Namespace name URI. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [XML_DTD_NS_URI](#XML_DTD_NS_URI:kotlin.String) XML Document Type Declaration Namespace URI as an arbitrary value. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [XML_NS_PREFIX](#XML_NS_PREFIX:kotlin.String) The official XML Namespace prefix. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [XML_NS_URI](#XML_NS_URI:kotlin.String) The official XML Namespace name URI. |\n\nConstants\n---------\n\n### DEFAULT_NS_PREFIX\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DEFAULT_NS_PREFIX: String\n```\n\nPrefix to use to represent the default XML Namespace.\n\nDefined by the XML specification to be \"\". \n\n Value: \"\"\n\n**See Also**\n\n### FEATURE_SECURE_PROCESSING\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val FEATURE_SECURE_PROCESSING: String\n```\n\nFeature for secure processing.\n\n- `true` instructs the implementation to process XML securely. This may set limits on XML constructs to avoid conditions such as denial of service attacks.\n- `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.\n\n Value: \"http://javax.xml.XMLConstants/feature/secure-processing\"\n\n### NULL_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val NULL_NS_URI: String\n```\n\nNamespace URI to use to represent that there is no Namespace.\n\nDefined by the Namespace specification to be \"\". \n\n Value: \"\"\n\n**See Also**\n\n### RELAXNG_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val RELAXNG_NS_URI: String\n```\n\nRELAX NG Namespace URI.\n\nDefined to be \"`http://relaxng.org/ns/structure/1.0`\". \n\n Value: \"http://relaxng.org/ns/structure/1.0\"\n\n**See Also**\n\n### W3C_XML_SCHEMA_INSTANCE_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val W3C_XML_SCHEMA_INSTANCE_NS_URI: String\n```\n\nW3C XML Schema Instance Namespace URI.\n\nDefined to be \"`http://www.w3.org/2001/XMLSchema-instance`\". \n\n Value: \"http://www.w3.org/2001/XMLSchema-instance\"\n\n**See Also**\n\n### W3C_XML_SCHEMA_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val W3C_XML_SCHEMA_NS_URI: String\n```\n\nW3C XML Schema Namespace URI.\n\nDefined to be \"`http://www.w3.org/2001/XMLSchema`\". \n\n Value: \"http://www.w3.org/2001/XMLSchema\"\n\n**See Also**\n\n### W3C_XPATH_DATATYPE_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val W3C_XPATH_DATATYPE_NS_URI: String\n```\n\nW3C XPath Datatype Namespace URI.\n\nDefined to be \"`http://www.w3.org/2003/11/xpath-datatypes`\". \n\n Value: \"http://www.w3.org/2003/11/xpath-datatypes\"\n\n**See Also**\n\n### XMLNS_ATTRIBUTE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val XMLNS_ATTRIBUTE: String\n```\n\nThe official XML attribute used for specifying XML Namespace declarations.\n\nIt is ***NOT*** valid to use as a prefix. Defined by the XML specification to be \"`xmlns`\". \n\n Value: \"xmlns\"\n\n**See Also**\n\n### XMLNS_ATTRIBUTE_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val XMLNS_ATTRIBUTE_NS_URI: String\n```\n\nThe official XML attribute used for specifying XML Namespace declarations, [XMLConstants.XMLNS_ATTRIBUTE](#XMLNS_ATTRIBUTE:kotlin.String), Namespace name URI.\n\nDefined by the XML specification to be \"`http://www.w3.org/2000/xmlns/`\". \n\n Value: \"http://www.w3.org/2000/xmlns/\"\n\n**See Also**\n\n### XML_DTD_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val XML_DTD_NS_URI: String\n```\n\nXML Document Type Declaration Namespace URI as an arbitrary value.\n\nSince not formally defined by any existing standard, arbitrarily define to be \"`http://www.w3.org/TR/REC-xml`\". \n\n Value: \"http://www.w3.org/TR/REC-xml\"\n\n### XML_NS_PREFIX\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val XML_NS_PREFIX: String\n```\n\nThe official XML Namespace prefix.\n\nDefined by the XML specification to be \"`xml`\". \n\n Value: \"xml\"\n\n**See Also**\n\n### XML_NS_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val XML_NS_URI: String\n```\n\nThe official XML Namespace name URI.\n\nDefined by the XML specification to be \"`http://www.w3.org/XML/1998/namespace`\". \n\n Value: \"http://www.w3.org/XML/1998/namespace\"\n\n**See Also**"]]