Class Xml.CustomizeParser (1.42.3)

Stay organized with collections Save and categorize content based on your preferences.
public static class Xml.CustomizeParser

Customizes the behavior of XML parsing. Subclasses may override any methods they need to customize behavior.

Implementation has no fields and therefore thread-safe, but sub-classes are not necessarily thread-safe.

Inheritance

java.lang.Object > Xml.CustomizeParser

Constructors

CustomizeParser()

public CustomizeParser()

Methods

stopAfterEndTag(String namespace, String localName)

public boolean stopAfterEndTag(String namespace, String localName)

Returns whether to stop parsing when reaching the end tag of an XML element after it has been processed. Only called if the element is actually being processed. By default, returns false, but subclasses may override.

Parameters
NameDescription
namespaceString

XML element's namespace URI

localNameString

XML element's local name

Returns
TypeDescription
boolean

stopBeforeStartTag(String namespace, String localName)

public boolean stopBeforeStartTag(String namespace, String localName)

Returns whether to stop parsing when reaching the start tag of an XML element before it has been processed. Only called if the element is actually being processed. By default, returns false, but subclasses may override.

Parameters
NameDescription
namespaceString

XML element's namespace URI

localNameString

XML element's local name

Returns
TypeDescription
boolean