edu.cornell.cs.sam.utils
Class XMLUtils
java.lang.Object
edu.cornell.cs.sam.utils.XMLUtils
public class XMLUtils
- extends java.lang.Object
This class contains several abstract methods
for writing XML files.
Method Summary |
static void |
printXML(char c,
java.io.PrintWriter out,
boolean isAttr)
|
static void |
printXML(java.lang.String s,
java.io.PrintWriter out,
boolean isAttr)
|
static void |
writeXML(org.w3c.dom.Node n,
java.io.PrintWriter out)
Writes the XML for a node to the output stream with no doctype |
static void |
writeXML(org.w3c.dom.Node n,
java.io.PrintWriter out,
java.lang.String docType,
java.lang.String docTypeURL)
Writes the XML for a node to the output stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLUtils
public XMLUtils()
writeXML
public static void writeXML(org.w3c.dom.Node n,
java.io.PrintWriter out)
- Writes the XML for a node to the output stream with no doctype
writeXML
public static void writeXML(org.w3c.dom.Node n,
java.io.PrintWriter out,
java.lang.String docType,
java.lang.String docTypeURL)
- Writes the XML for a node to the output stream
printXML
public static void printXML(java.lang.String s,
java.io.PrintWriter out,
boolean isAttr)
printXML
public static void printXML(char c,
java.io.PrintWriter out,
boolean isAttr)