/** * Skips all events within a single element, including its start and end * tags. The provided reader must be positioned directly in front of a * <code>StartElement</code> event or it will have no effect. After this * method completes, the reader will be positioned before the event * following the end tag (the end tag will have been read). * * @param reader The event stream to read. * @throws XMLStreamException If an error occurs reading events. */ public static final void skipElement(XMLEventReader reader) throws XMLStreamException { copyElement(reader, null); }