class XmlUtility extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
XmlUtility.UtilityErrorHandler  | 
| Modifier and Type | Field and Description | 
|---|---|
(package private) static Pattern | 
WhitespacePattern  | 
| Constructor and Description | 
|---|
XmlUtility()  | 
| Modifier and Type | Method and Description | 
|---|---|
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)  | 
static final Pattern WhitespacePattern
public static DocumentBuilder createDomParser(boolean validate, boolean ignoreIgnorableWhitespace, boolean usingSchema, ErrorHandler handler)
public static Document getDocument(File file) throws IOException, SAXException
IOExceptionSAXExceptionpublic static void save(Writer writer, Document document) throws IOException
IOExceptionpublic static void stripWhitespace(Element element)