/** * Static method to build a document from any kind of Source object. If the source * is already in the form of a tree, it is wrapped as required. * <p><i>The preferred way to construct a document tree from a Source object is to * use the method {@link Configuration#buildDocument}.</i></p> * @param source Any javax.xml.transform.Source object * @param stripper A stripper object, if whitespace text nodes are to be stripped; * otherwise null. * @param config The Configuration object * @return the NodeInfo of the start node in the resulting document object. */ public static NodeInfo build(Source source, Stripper stripper, Configuration config) throws XPathException { return build(source, stripper, config.makePipelineConfiguration()); }
/** * Static method to build a document from any kind of Source object. If the source * is already in the form of a tree, it is wrapped as required. * <p><i>The preferred way to construct a document tree from a Source object is to * use the method {@link Configuration#buildDocument}.</i></p> * @param source Any javax.xml.transform.Source object * @param stripper A stripper object, if whitespace text nodes are to be stripped; * otherwise null. * @param config The Configuration object * @return the NodeInfo of the start node in the resulting document object. */ public static NodeInfo build(Source source, Stripper stripper, Configuration config) throws XPathException { return build(source, stripper, config.makePipelineConfiguration()); }
/** * Static method to build a document from any kind of Source object. If the source * is already in the form of a tree, it is wrapped as required. * <p><i>The preferred way to construct a document tree from a Source object is to * use the method {@link Configuration#buildDocument}.</i></p> * @param source Any javax.xml.transform.Source object * @param stripper A stripper object, if whitespace text nodes are to be stripped; * otherwise null. * @param config The Configuration object * @return the NodeInfo of the start node in the resulting document object. */ public static NodeInfo build(Source source, Stripper stripper, Configuration config) throws XPathException { return build(source, stripper, config.makePipelineConfiguration()); }