org.wso2.carbon.webapp.mgt.utils
Class XMLUtils
java.lang.Object
org.wso2.carbon.webapp.mgt.utils.XMLUtils
public class XMLUtils
- extends Object
Contains XML utility methods based on DOM.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLUtils
public XMLUtils()
buildDocumentFromFile
public static Document buildDocumentFromFile(File xmlFile)
throws Exception
- Build a Document from a file
- Parameters:
xmlFile - file
- Returns:
- a Document object
- Throws:
Exception - if an error occurs
buildDocumentFromInputStream
public static Document buildDocumentFromInputStream(InputStream is)
throws Exception
- Build a document from a InputStream.
- Parameters:
is - InputStream
- Returns:
- a Document object
- Throws:
Exception - if an error occurs
Copyright © 2015 WSO2. All rights reserved.