/** * Skips all events within a <code>StartElement</code> until the matching * <code>EndElement</code> is reached. This method assumes that the reader * is positioned after the <code>StartElement</code> event, and when the * method completes, the stream will be positioned before the * <code>EndElement</code> event, but it will not consume the end tag. * * @param reader The event stream to read, positioned after the * <code>StartElement</code> * @throws XMLStreamException If an error occurs reading events. */ public static final void skipElementContent(XMLEventReader reader) throws XMLStreamException { copyElementContent(reader, null); }