mondrian.test.comp
Class XmlUtility

java.lang.Object
  extended by mondrian.test.comp.XmlUtility

 class XmlUtility
extends Object

XML utility methods.


Nested Class Summary
static class XmlUtility.UtilityErrorHandler
           
 
Field Summary
(package private) static Pattern WhitespacePattern
           
 
Constructor Summary
XmlUtility()
           
 
Method Summary
static DocumentBuilder createDomParser(boolean validate, boolean ignoreIgnorableWhitespace, boolean usingSchema, ErrorHandler handler)
           
static String decodeEncodedString(String enc)
           
static Document getDocument(File file)
           
static void save(Writer writer, Document document)
           
static void stripWhitespace(Element element)
           
static String toString(Element xmlRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WhitespacePattern

static final Pattern WhitespacePattern
Constructor Detail

XmlUtility

XmlUtility()
Method Detail

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)

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads