play.libs
Class XML
java.lang.Object
play.libs.XML
public class XML
- extends Object
XML utils
|
Constructor Summary |
XML()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML
public XML()
serialize
public static String serialize(Document document)
- Serialize to XML String
- Parameters:
document - The DOM document
- Returns:
- The XML String
getDocument
public static Document getDocument(File file)
- Parse an XML file to DOM
- Returns:
- null if an error occurs during parsing.
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly