public interface XMLStreamConstants
This interface declares the constants used in this API. Numbers in the range 0 to 256 are reserved for the specification, user defined events must use event codes outside that range.
static final int START_ELEMENT
Indicates an event is a start element
StartElement
, Constant Field Valuesstatic final int END_ELEMENT
Indicates an event is an end element
EndElement
, Constant Field Valuesstatic final int PROCESSING_INSTRUCTION
Indicates an event is a processing instruction
ProcessingInstruction
, Constant Field Valuesstatic final int CHARACTERS
Indicates an event is characters
Characters
, Constant Field Valuesstatic final int COMMENT
Indicates an event is a comment
Comment
, Constant Field Valuesstatic final int SPACE
The characters are white space (see [XML], 2.10 "White Space Handling"). Events are only reported as SPACE if they are ignorable white space. Otherwise they are reported as CHARACTERS.
Characters
, Constant Field Valuesstatic final int START_DOCUMENT
Indicates an event is a start document
StartDocument
, Constant Field Valuesstatic final int END_DOCUMENT
Indicates an event is an end document
EndDocument
, Constant Field Valuesstatic final int ENTITY_REFERENCE
Indicates an event is an entity reference
EntityReference
, Constant Field Valuesstatic final int ATTRIBUTE
Indicates an event is an attribute
Attribute
, Constant Field Valuesstatic final int DTD
Indicates an event is a DTD
DTD
, Constant Field Valuesstatic final int CDATA
Indicates an event is a CDATA section
Characters
, Constant Field Valuesstatic final int NAMESPACE
Indicates the event is a namespace declaration
Namespace
, Constant Field Valuesstatic final int NOTATION_DECLARATION
Indicates a Notation
NotationDeclaration
, Constant Field Valuesstatic final int ENTITY_DECLARATION
Indicates a Entity Declaration
NotationDeclaration
, Constant Field Values
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.