|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.XMLTools
public final class XMLTools
A utility class for working with XML (not necessarily OME-XML).
Method Summary | |
---|---|
static String |
indentXML(String xml)
Indents XML to be more readable. |
static String |
indentXML(String xml,
int spacing)
Indents XML by the given spacing to be more readable. |
static void |
validateXML(String xml)
Attempts to validate the given XML string using Java's XML validation facility. |
static void |
validateXML(String xml,
String label)
Attempts to validate the given XML string using Java's XML validation facility. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void validateXML(String xml)
xml
- The XML string to validate.public static void validateXML(String xml, String label)
xml
- The XML string to validate.label
- String describing the type of XML being validated.public static String indentXML(String xml)
public static String indentXML(String xml, int spacing)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |