|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.webapp.jonasadmin.xml.XMLUtil
public class XMLUtil
A class which provides various utilities to interact with XML files.
Constructor Summary | |
---|---|
XMLUtil()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
extractXML(java.lang.String file)
Returns a new Document from the XML file given from the file. |
static org.w3c.dom.Document |
extractXML(java.lang.String archiveName,
java.lang.String xmlFilePath)
Extract a DOM Document from an XML file located within an archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtil()
Method Detail |
---|
public static org.w3c.dom.Document extractXML(java.lang.String archiveName, java.lang.String xmlFilePath) throws java.lang.Exception
archiveName
- the path to the archive to extract fromxmlFilePath
- the path within the archive to extract.
java.lang.Exception
- if the document does not parse properly.public static org.w3c.dom.Document extractXML(java.lang.String file)
file
- the path to the XML file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |