net.sourceforge.jeuclid
Class MathMLSerializer
java.lang.Object
net.sourceforge.jeuclid.MathMLSerializer
public final class MathMLSerializer
- extends Object
Utility class to serialize DOM documents back into Strings.
- Version:
- $Revision: 310 $
- Author:
- Max Berger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serializeDocument
public static String serializeDocument(Document doc,
boolean addDoctype,
boolean format)
- Serialize a document back into a String.
- Parameters:
doc - a DOM model of a document.addDoctype - if true, extra attributes such as docType will be set. This
ensures maximum MathML compatibilityformat - if true, result will be nicely formatted.
- Returns:
- the document serialized as a string
Copyright © 2002-2008 The JEuclid project. All Rights Reserved.