Class XMLStreamConstants

Useful constants for working with XML streams.

Constant Summary 

ConstantDescription
ATTRIBUTE: Number = 10Represents an attribute in an element.
CDATA: Number = 12Represents a CDATA section in an element.
CHARACTERS: Number = 4Represents the character data in an XML document.
COMMENT: Number = 5Represents a comment in an XML document.
DTD: Number = 11Represents the document type definition.
END_DOCUMENT: Number = 8Represents the end of an XML document.
END_ELEMENT: Number = 2Represents the end of an element in an XML document.
ENTITY_DECLARATION: Number = 15Represents the entity declaration in an XML document.
ENTITY_REFERENCE: Number = 9Represents an entity reference in an XML document.
NAMESPACE: Number = 13Represents a namespace declaration in an XML document.
NOTATION_DECLARATION: Number = 14Represents the notation declaration in an XML document.
PROCESSING_INSTRUCTION: Number = 3Represents processing instruction in an XML document.
SPACE: Number = 6Represents a space in an XML document.
START_DOCUMENT: Number = 7Represents the start of an XML document.
START_ELEMENT: Number = 1Represents the start of an element in an XML document.

Constructor Summary 

ConstructorDescription
XMLStreamConstants()

Method Summary 

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Constant Details 

ATTRIBUTE 

ATTRIBUTE: Number = 10

Represents an attribute in an element.


CDATA 

CDATA: Number = 12

Represents a CDATA section in an element.


CHARACTERS 

CHARACTERS: Number = 4

Represents the character data in an XML document.


COMMENT 

COMMENT: Number = 5

Represents a comment in an XML document.


DTD 

DTD: Number = 11

Represents the document type definition.


END_DOCUMENT 

END_DOCUMENT: Number = 8

Represents the end of an XML document.


END_ELEMENT 

END_ELEMENT: Number = 2

Represents the end of an element in an XML document.


ENTITY_DECLARATION 

ENTITY_DECLARATION: Number = 15

Represents the entity declaration in an XML document.


ENTITY_REFERENCE 

ENTITY_REFERENCE: Number = 9

Represents an entity reference in an XML document.


NAMESPACE 

NAMESPACE: Number = 13

Represents a namespace declaration in an XML document.


NOTATION_DECLARATION 

NOTATION_DECLARATION: Number = 14

Represents the notation declaration in an XML document.


PROCESSING_INSTRUCTION 

PROCESSING_INSTRUCTION: Number = 3

Represents processing instruction in an XML document.


SPACE 

SPACE: Number = 6

Represents a space in an XML document.


START_DOCUMENT 

START_DOCUMENT: Number = 7

Represents the start of an XML document.


START_ELEMENT 

START_ELEMENT: Number = 1

Represents the start of an element in an XML document.


Constructor Details 

XMLStreamConstants() 

XMLStreamConstants()


DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!