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.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XMLUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Document` | `buildDocumentFromFile(File xmlFile)` Build a Document from a file
    `static Document` | `buildDocumentFromInputStream(InputStream is)` Build a document from a InputStream.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XMLUtils

          public XMLUtils()

  - ### Method Detail

    - #### 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 © 2017 WSO2. All rights reserved.