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