Package com.itextpdf.kernel.utils
Interface IXmlParserFactory
- All Known Implementing Classes:
-
DefaultSafeXmlParserFactory
public interface IXmlParserFactory
The interface in which methods for creating xml parsers are declared.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDocumentBuilderInstance
(boolean namespaceAware, boolean ignoringComments) Creates the instance of theDocumentBuilder
.createXMLReaderInstance
(boolean namespaceAware, boolean validating) Creates the instance of theXMLReader
.
-
Method Details
-
createDocumentBuilderInstance
Creates the instance of theDocumentBuilder
.- Parameters:
-
namespaceAware
- specifies whether the parser should be namespace aware -
ignoringComments
- specifies whether the parser should ignore comments - Returns:
-
instance of the
DocumentBuilder
-
createXMLReaderInstance
Creates the instance of theXMLReader
.- Parameters:
-
namespaceAware
- specifies whether the parser should be namespace aware -
validating
- specifies whether the parser should validate documents as they are parsed - Returns:
-
instance of the
XMLReader
-