|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jeuclid.MathMLSerializer
@ThreadSafe public final class MathMLSerializer
Utility class to serialize DOM documents back into Strings.
This class can be used to generate String representations for an existing DOM Tree. The functionality is not restricted to JEuclid, and can be used for other DOM trees as well. In this case, you should set the addDoctype parameter to false.
Method Summary | |
---|---|
static String |
serializeDocument(Node doc,
boolean addDoctype,
boolean format)
Serialize a document back into a String. |
static String |
serializeDocument(Node doc,
boolean addDoctype,
boolean format,
boolean omitXMLDecl)
Serialize a document back into a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String serializeDocument(Node doc, boolean addDoctype, boolean format)
doc
- a DOM model of a document, or a node in a documentaddDoctype
- if true, extra attributes such as docType will be set. This
ensures maximum MathML compatibility. Use only with MathML DOM
trees.format
- if true, result will be nicely formatted.
serializeDocument(Node, boolean, boolean, boolean)
public static String serializeDocument(Node doc, boolean addDoctype, boolean format, boolean omitXMLDecl)
doc
- a DOM model of a document.addDoctype
- if true, extra attributes such as docType will be set. This
ensures maximum MathML compatibility. Use only with MathML DOM
trees.format
- if true, result will be nicely formatted.omitXMLDecl
- if true, there will be no XML declaration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |