Interface IXmlParserFactory

All Known Implementing Classes:
DefaultSafeXmlParserFactory

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

    • createDocumentBuilderInstance

      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

      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