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 ) ; } }
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 .