code: public static XMLBuilder2 parse(File xmlFile, boolean enableExternalEntities,
          boolean isNamespaceAware)
      {
          try {
              return XMLBuilder2.parse(
                  new InputSource(new FileReader(xmlFile)),
                  enableExternalEntities,
                  isNamespaceAware);
          } catch (FileNotFoundException e) {
              throw wrapExceptionAsRuntimeException(e);
          }
      }
docs: Construct a builder from an existing XML document file.
  The provided XML document will be parsed and an XMLBuilder2
  object referencing the document's root element will be returned.
  
  @param xmlFile
  an XML document file 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}, {@link FileNotFoundException}