Class XmlDOMParser.XmlDOMParserBuilder
- java.lang.Object
-
- com.aquima.interactions.foundation.xml.parsing.XmlDOMParser.XmlDOMParserBuilder
-
- Enclosing class:
- XmlDOMParser
public static class XmlDOMParser.XmlDOMParserBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlDOMParserBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlDOMParser
build()
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.XmlDOMParser.XmlDOMParserBuilder
entityResolver(EntityResolver entityResolver)
Set a SAX2 Entity Resolver to handle system entities.XmlDOMParser.XmlDOMParserBuilder
namespaceAware(boolean namespaceAware)
enable or disable Namespace awareness.XmlDOMParser.XmlDOMParserBuilder
validating(boolean validating)
Enable or disable DTD-validating.XmlDOMParser.XmlDOMParserBuilder
valueTrimming(boolean valueTrimming)
Enable or disable automatic value trimming.
-
-
-
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 tofalse
- 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.
-
build
public XmlDOMParser build()
-
-