play.libs
Class XML

java.lang.Object
  extended by play.libs.XML

public class XML
extends Object

XML utils


Constructor Summary
XML()
           
 
Method Summary
static Document getDocument(File file)
          Parse an XML file to DOM
static String serialize(Document document)
          Serialize to XML String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML

public XML()
Method Detail

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