Class XmlDOMParser.XmlDOMParserBuilder

  • Enclosing class:
    XmlDOMParser

    public static class XmlDOMParser.XmlDOMParserBuilder
    extends Object
    • Constructor Detail

      • XmlDOMParserBuilder

        public XmlDOMParserBuilder()
    • Method Detail

      • coalescing

        public XmlDOMParser.XmlDOMParserBuilder coalescing​(boolean coalescing)
        Specifies that the parser produced by this code will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node. By default the value of this is set to false
        Parameters:
        coalescing - true if the parser produced will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node; false otherwise.
      • validating

        public XmlDOMParser.XmlDOMParserBuilder validating​(boolean validating)
        Enable or disable DTD-validating. Default=false.
        Parameters:
        validating - Boolean indicating if the XML should be validated.
      • valueTrimming

        public XmlDOMParser.XmlDOMParserBuilder valueTrimming​(boolean valueTrimming)
        Enable or disable automatic value trimming. Default=false
        Parameters:
        valueTrimming - Boolean indicating if white-spaces should be removed while parsing.
      • namespaceAware

        public XmlDOMParser.XmlDOMParserBuilder namespaceAware​(boolean namespaceAware)
        enable or disable Namespace awareness. Default=false.
        Parameters:
        namespaceAware - Boolean indicating if the parser should consider name-spaces.
      • entityResolver

        public XmlDOMParser.XmlDOMParserBuilder entityResolver​(EntityResolver entityResolver)
        Set a SAX2 Entity Resolver to handle system entities.
        Parameters:
        entityResolver - The entity resolver that should be used.