接口 DocumentLoader

    • 方法详细资料

      • loadDocument

        Document loadDocument​(InputSource inputSource,
                              EntityResolver entityResolver,
                              ErrorHandler errorHandler,
                              int validationMode,
                              boolean namespaceAware)
                       throws Exception
        Load a document from the supplied source.
        参数:
        inputSource - the source of the document that is to be loaded
        entityResolver - the resolver that is to be used to resolve any entities
        errorHandler - used to report any errors during document loading
        validationMode - the type of validation DTD or XSD)
        namespaceAware - true if support for XML namespaces is to be provided
        返回:
        the loaded document
        抛出:
        Exception - if an error occurs