code: public static XMLBuilder2 parse(
          InputSource inputSource, boolean enableExternalEntities,
          boolean isNamespaceAware)
      {
          try {
              return new XMLBuilder2(
                  parseDocumentImpl(
                      inputSource, enableExternalEntities, isNamespaceAware));
          } catch (ParserConfigurationException e) {
              throw wrapExceptionAsRuntimeException(e);
          } catch (SAXException e) {
              throw wrapExceptionAsRuntimeException(e);
          } catch (IOException e) {
              throw wrapExceptionAsRuntimeException(e);
          }
      }
docs: Construct a builder from an existing XML document. The provided XML
  document will be parsed and an XMLBuilder2 object referencing the
  document's root element will be returned.
  
  @param inputSource
  an XML document input source that will be parsed into a DOM.
  @param enableExternalEntities
  enable external entities; beware of XML External Entity (XXE) injection.
  @param isNamespaceAware
  enable or disable namespace awareness in the underlying
  {@link DocumentBuilderFactory}
  @return
  a builder node that can be used to add more nodes to the XML document.
  @throws XMLBuilderRuntimeException
  to wrap {@link ParserConfigurationException}, {@link SAXException},
  {@link IOException}