public static enum XmlDataReader.Feature extends java.lang.Enum<XmlDataReader.Feature>
| Enum Constant | Description |
|---|---|
ALLOW_MIXED_CONTENT |
If enabled, mixed content is allowed.
|
DUMMY_ENTITY_RESOLVER |
If enabled, a dummy entity resolver is used.
|
LOAD_COMMENTS |
If enabled, comments are loaded (as comment nodes).
|
LOAD_SPACES |
If enabled, spaces are loaded (as text nodes).
|
SHARE_ATTRIBUTE_NAMES |
If enabled, attributes names are shared using an internal cache.
|
SHARE_ELEMENT_NAMES |
If enabled, element names are shared using an internal cache.
|
| Modifier and Type | Method | Description |
|---|---|---|
static XmlDataReader.Feature |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static XmlDataReader.Feature[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlDataReader.Feature LOAD_COMMENTS
They are ignored by default.
public static final XmlDataReader.Feature LOAD_SPACES
They are ignored by default.
public static final XmlDataReader.Feature ALLOW_MIXED_CONTENT
public static final XmlDataReader.Feature SHARE_ATTRIBUTE_NAMES
No sharing by default (SAX parsers may already do this).
public static final XmlDataReader.Feature SHARE_ELEMENT_NAMES
No sharing by default (SAX parsers may already do this).
public static final XmlDataReader.Feature DUMMY_ENTITY_RESOLVER
This may be used to ignore DTD.
However, if entities are used, result will be wrong.
public static XmlDataReader.Feature[] values()
for (XmlDataReader.Feature c : XmlDataReader.Feature.values()) System.out.println(c);
public static XmlDataReader.Feature valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2019. All rights reserved.