Enum ParseConfiguration.UniqueRootElementPresence

java.lang.Object
java.lang.Enum<ParseConfiguration.UniqueRootElementPresence>
org.attoparser.config.ParseConfiguration.UniqueRootElementPresence
All Implemented Interfaces:
Serializable, Comparable<ParseConfiguration.UniqueRootElementPresence>, java.lang.constant.Constable
Enclosing class:
ParseConfiguration

public static enum ParseConfiguration.UniqueRootElementPresence extends Enum<ParseConfiguration.UniqueRootElementPresence>

Enumeration used for determining the behaviour the parser should have with respect to the presence and number of root elements in the parsed document.

Root elements are the elements that appear at the root of the document (e.g. <html> in complete HTML documents). This enumeration allows requiring that the root element is unique always, requiring it only if a document prolog (XML Declaration or DOCTYPE) is present, or not validating this at all.

This enumeration is used at the ParseConfiguration class.

Since:
2.0.0
Author:
Daniel Fernández