/** * Skips the complete content of the element at the specified reader's * cursor. The reader's current event type must be START_ELEMENT, otherwise * this method will have no effect. Upon completion, the reader's cursor * will be at the END_ELEMENT event for the skipped element. * * @param reader An XML stream reader currently in the START_ELEMENT event. */ public static final void skipElement(XMLStreamReader reader) throws XMLStreamException { if (reader.isStartElement()) { skipElementContent(reader); } }