| java.lang.Object org.objectweb.jonas.webapp.jonasadmin.xml.XMLUtil
XMLUtil | public class XMLUtil (Code) | | A class which provides various utilities to interact with XML files.
author: Greg Lapouchnian author: Patrick Smith |
Method Summary | |
public static Document | extractXML(String archiveName, String xmlFilePath) Extract a DOM Document from an XML file located within an archive.
Parameters: archiveName - the path to the archive to extract from Parameters: xmlFilePath - the path within the archive to extract. | public static Document | extractXML(String file) Returns a new Document from the XML file given from the file.
Parameters: file - the path to the XML file. |
extractXML | public static Document extractXML(String archiveName, String xmlFilePath) throws Exception(Code) | | Extract a DOM Document from an XML file located within an archive.
Parameters: archiveName - the path to the archive to extract from Parameters: xmlFilePath - the path within the archive to extract. a Document representation of the XML file. throws: Exception - if the document does not parse properly. |
extractXML | public static Document extractXML(String file)(Code) | | Returns a new Document from the XML file given from the file.
Parameters: file - the path to the XML file. a Document representation of the file. |
|
|