mondrian.test.comp
Class XmlUtility
java.lang.Object
mondrian.test.comp.XmlUtility
class XmlUtility
- extends Object
XML utility methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhitespacePattern
static final Pattern WhitespacePattern
XmlUtility
XmlUtility()
createDomParser
public static DocumentBuilder createDomParser(boolean validate,
boolean ignoreIgnorableWhitespace,
boolean usingSchema,
ErrorHandler handler)
getDocument
public static Document getDocument(File file)
throws IOException,
SAXException
- Throws:
IOException
SAXException
save
public static void save(Writer writer,
Document document)
throws IOException
- Throws:
IOException
decodeEncodedString
public static String decodeEncodedString(String enc)
stripWhitespace
public static void stripWhitespace(Element element)
toString
public static String toString(Element xmlRoot)