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