/** * Read the current XML Fragment from the XMLStreamReader. * The XMLStreamReader must be at some 'content' state, it cannot be * at START_DOCUMENT, for example. * @param reader The XMLStreamReader to read the next fragment from * @return The JDOM fragment at the current position in the reader * @throws JDOMException if there is an issue with the state of the * XMLStreamReader or some other issue with the processing. */ public Content fragment(XMLStreamReader reader) throws JDOMException { return processFragment(builderfactory, reader); }