Interface IXmlParserFactory

  • All Known Implementing Classes:
    DefaultSafeXmlParserFactory

    public interface IXmlParserFactory
    The interface in which methods for creating xml parsers are declared.
    • Method Detail

      • createDocumentBuilderInstance

        javax.xml.parsers.DocumentBuilder createDocumentBuilderInstance​(boolean namespaceAware,
                                                                        boolean ignoringComments)
        Creates the instance of the DocumentBuilder.
        Parameters:
        namespaceAware - specifies whether the parser should be namespace aware
        ignoringComments - specifies whether the parser should ignore comments
        Returns:
        instance of the DocumentBuilder
      • createXMLReaderInstance

        org.xml.sax.XMLReader createXMLReaderInstance​(boolean namespaceAware,
                                                      boolean validating)
        Creates the instance of the XMLReader.
        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
      • createTransformerInstance

        javax.xml.transform.Transformer createTransformerInstance()
        Creates the instance of the Transformer.
        Returns:
        instance of the Transformer