net.sf.statsvn.util
public final class XMLUtil extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
offsetDateFromGMT(java.util.Date date)
This method converts from GMT to local timezone
|
static java.util.Date |
parseXsdDateTime(java.lang.String sDateTime)
For some reason, can't find this utility method in the java framework.
|
static void |
writeXmlFile(org.w3c.dom.Document doc,
java.lang.String filename)
This method writes a DOM document to a file
|
public static java.util.Date parseXsdDateTime(java.lang.String sDateTime) throws java.text.ParseException
sDateTime
- an xsd:dateTime stringjava.text.ParseException
public static java.util.Date offsetDateFromGMT(java.util.Date date)
date
- date in GMT timezonepublic static void writeXmlFile(org.w3c.dom.Document doc, java.lang.String filename)
doc
- DOM document.filename
- the target file.