Module java.xml

Interface XMLStreamConstants

All Known Subinterfaces:
Attribute, Characters, Comment, DTD, EndDocument, EndElement, EntityDeclaration, EntityReference, Namespace, NotationDeclaration, ProcessingInstruction, StartDocument, StartElement, XMLEvent, XMLStreamReader
All Known Implementing Classes:
StreamReaderDelegate

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.
Since:
1.6
  • Field Summary

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