/** * Builds a DOM sub-tree based on the currently parsed tokens, appending the results as * children of the given target root Element. This uses the default {@link DOMOutputOptions} * associated with this engine. * * @return true if completed successfully, false if the process was terminated by an error in the * input LaTeX and if the session was configured to fail on the first error. */ public boolean buildDOMSubtree(final Element targetRoot) { return buildDOMSubtree(targetRoot, engine.getDefaultDOMOutputOptions()); }
/** * Builds a DOM sub-tree based on the currently parsed tokens, appending the results as * children of the given target root Element. This uses the default {@link DOMOutputOptions} * associated with this engine. * * @return true if completed successfully, false if the process was terminated by an error in the * input LaTeX and if the session was configured to fail on the first error. */ public boolean buildDOMSubtree(final Element targetRoot) { return buildDOMSubtree(targetRoot, engine.getDefaultDOMOutputOptions()); }
/** * Convenience method to build a DOM {@link NodeList} representing the converted Tokens. * These Nodes will belong to a "fake root" element in the * {@link SnuggleConstants#SNUGGLETEX_NAMESPACE} namespace called "root". * <p> * The default {@link DOMOutputOptions} specified in the {@link SnuggleEngine} will be * used. * * @return resulting {@link NodeList} if the process completed successfully, null if the process was * terminated by an error in the input LaTeX and if the session was configured to fail on * the first error. */ public NodeList buildDOMSubtree() { return buildDOMSubtree(engine.getDefaultDOMOutputOptions()); }
/** * Convenience method to build a DOM {@link NodeList} representing the converted Tokens. * These Nodes will belong to a "fake root" element in the * {@link SnuggleConstants#SNUGGLETEX_NAMESPACE} namespace called "root". * <p> * The default {@link DOMOutputOptions} specified in the {@link SnuggleEngine} will be * used. * * @return resulting {@link NodeList} if the process completed successfully, null if the process was * terminated by an error in the input LaTeX and if the session was configured to fail on * the first error. */ public NodeList buildDOMSubtree() { return buildDOMSubtree(engine.getDefaultDOMOutputOptions()); }
/** * Convenience method to create a well-formed external general parsed entity out of the * currently parsed tokens. * <p> * The default {@link DOMOutputOptions} specified in the {@link SnuggleEngine} will be * used. * * @param indent whether to indent the resulting XML or not * * @return resulting XML if the process completed successfully, null if the process was * terminated by an error in the input LaTeX and if the session was configured to fail on * the first error. * * @deprecated Use {@link #buildXMLString(XMLStringOutputOptions)} instead */ @Deprecated public String buildXMLString(boolean indent) { return buildXMLString(engine.getDefaultDOMOutputOptions(), indent); }
/** * Convenience method to create a well-formed external general parsed entity out of the * currently parsed tokens. * <p> * The default {@link DOMOutputOptions} specified in the {@link SnuggleEngine} will be * used. * * @param indent whether to indent the resulting XML or not * * @return resulting XML if the process completed successfully, null if the process was * terminated by an error in the input LaTeX and if the session was configured to fail on * the first error. * * @deprecated Use {@link #buildXMLString(XMLStringOutputOptions)} instead */ @Deprecated public String buildXMLString(boolean indent) { return buildXMLString(engine.getDefaultDOMOutputOptions(), indent); }
this.defaultDOMOutputOptions = (DOMOutputOptions) engine.getDefaultDOMOutputOptions().clone(); this.defaultXMLStringOutputOptions = (XMLStringOutputOptions) engine.getDefaultXMLStringOutputOptions().clone();