com.versionone.apiclient

## Class XMLHandler

- java.lang.Object
- - com.versionone.apiclient.XMLHandler

-     public class XMLHandler
      extends Object

  This class centralizes the process of reading XML to create a DOM document

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XMLHandler()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Document` | `buildDocument(Reader reader, String url)`
    `static DocumentBuilder` | `createDocumentBuilder()` Create the Xerces Document Builder

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

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

- - ### Constructor Detail

    - #### XMLHandler

          public XMLHandler()

  - ### Method Detail

    - #### buildDocument

          public static Document buildDocument(Reader reader,
                                               String url)
                                        throws APIException,
                                               ConnectionException

      Parameters:
        `reader` - Reader
        `url` - String
      Returns:
        Document Document
      Throws:
        `APIException` - APIException
        `ConnectionException` - if connection failed

    - #### createDocumentBuilder

          public static DocumentBuilder createDocumentBuilder()
                                                       throws ParserConfigurationException

      Create the Xerces Document Builder
      Returns:
        DocumentBuilder DocumentBuilder
      Throws:
        `ParserConfigurationException` - ParserConfigurationException

Copyright © 2022 VersionOne, Inc.. All rights reserved.