public interface

XMLStreamConstants

javax.xml.stream.XMLStreamConstants
Known Indirect Subclasses

Class Overview

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.

Summary

Constants
int ATTRIBUTE Indicates an event is an attribute
int CDATA Indicates an event is a CDATA section
int CHARACTERS Indicates an event is characters
int COMMENT Indicates an event is a comment
int DTD Indicates an event is a DTD
int END_DOCUMENT Indicates an event is an end document
int END_ELEMENT Indicates an event is an end element
int ENTITY_DECLARATION Indicates a Entity Declaration
int ENTITY_REFERENCE Indicates an event is an entity reference
int NAMESPACE Indicates the event is a namespace declaration
int NOTATION_DECLARATION Indicates a Notation
int PROCESSING_INSTRUCTION Indicates an event is a processing instruction
int SPACE The characters are white space (see [XML], 2.10 "White Space Handling").
int START_DOCUMENT Indicates an event is a start document
int START_ELEMENT Indicates an event is a start element

Constants

public static final int ATTRIBUTE

Indicates an event is an attribute

See Also
Constant Value: 10 (0x0000000a)

public static final int CDATA

Indicates an event is a CDATA section

See Also
Constant Value: 12 (0x0000000c)

public static final int CHARACTERS

Indicates an event is characters

See Also
Constant Value: 4 (0x00000004)

public static final int COMMENT

Indicates an event is a comment

See Also
Constant Value: 5 (0x00000005)

public static final int DTD

Indicates an event is a DTD

See Also
Constant Value: 11 (0x0000000b)

public static final int END_DOCUMENT

Indicates an event is an end document

See Also
Constant Value: 8 (0x00000008)

public static final int END_ELEMENT

Indicates an event is an end element

See Also
Constant Value: 2 (0x00000002)

public static final int ENTITY_DECLARATION

Indicates a Entity Declaration

Constant Value: 15 (0x0000000f)

public static final int ENTITY_REFERENCE

Indicates an event is an entity reference

See Also
Constant Value: 9 (0x00000009)

public static final int NAMESPACE

Indicates the event is a namespace declaration

See Also
Constant Value: 13 (0x0000000d)

public static final int NOTATION_DECLARATION

Indicates a Notation

Constant Value: 14 (0x0000000e)

public static final int PROCESSING_INSTRUCTION

Indicates an event is a processing instruction

Constant Value: 3 (0x00000003)

public static 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.

See Also
Constant Value: 6 (0x00000006)

public static final int START_DOCUMENT

Indicates an event is a start document

See Also
Constant Value: 7 (0x00000007)

public static final int START_ELEMENT

Indicates an event is a start element

See Also
Constant Value: 1 (0x00000001)