Class XMLStreamReaderValidator

  • All Implemented Interfaces:
    XMLStreamConstants, XMLStreamReader

    public class XMLStreamReaderValidator
    extends XMLStreamReaderWrapper
    XMLStreamReader wrapper that performs some simple consistency checks on the events returned by the wrapper reader. This is most useful for custom XMLStreamReader implementations. Validating events can help find and correct errors when they occur. Otherwise the errors may be caught much further downstream and hard to fix. In its current version, the validator ensures that the start element events match the end element events.