net.sourceforge.jeuclid
Class MathMLSerializer

java.lang.Object
  extended by 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

Method Summary
static String serializeDocument(Document doc, boolean addDoctype, boolean format)
          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

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 compatibility
format - if true, result will be nicely formatted.
Returns:
the document serialized as a string


Copyright © 2002-2008 The JEuclid project. All Rights Reserved.