Class XMLStreamConstants

Useful constants for working with XML streams.

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.
ConstructorDescription
XMLStreamConstants()

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

ATTRIBUTE: Number = 10

Represents an attribute in an element.


CDATA: Number = 12

Represents a CDATA section in an element.


CHARACTERS: Number = 4

Represents the character data in an XML document.


COMMENT: Number = 5

Represents a comment in an XML document.


DTD: Number = 11

Represents the document type definition.


END_DOCUMENT: Number = 8

Represents the end of an XML document.


END_ELEMENT: Number = 2

Represents the end of an element in an XML document.


ENTITY_DECLARATION: Number = 15

Represents the entity declaration in an XML document.


ENTITY_REFERENCE: Number = 9

Represents an entity reference in an XML document.


NAMESPACE: Number = 13

Represents a namespace declaration in an XML document.


NOTATION_DECLARATION: Number = 14

Represents the notation declaration in an XML document.


PROCESSING_INSTRUCTION: Number = 3

Represents processing instruction in an XML document.


SPACE: Number = 6

Represents a space in an XML document.


START_DOCUMENT: Number = 7

Represents the start of an XML document.


START_ELEMENT: Number = 1

Represents the start of an element in an XML document.


XMLStreamConstants()