code: public static XMLBuilder create(String name, String namespaceURI,
          boolean enableExternalEntities, boolean isNamespaceAware)
          throws ParserConfigurationException, FactoryConfigurationError
      {
          return new XMLBuilder(
              createDocumentImpl(
                  name, namespaceURI, enableExternalEntities, isNamespaceAware));
      }
docs: Construct a builder for new XML document with a default namespace.
  The document will be created with the given root element, and the builder
  returned by this method will serve as the starting-point for any further
  document additions.
  
  @param name
  the name of the document's root element.
  @param namespaceURI
  default namespace URI for document, ignored if null or empty.
  @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 FactoryConfigurationError
  @throws ParserConfigurationException