public static enum XMLFormattingOptions.EmptyElements extends Enum<XMLFormattingOptions.EmptyElements>
expand
: expand empty elements. With this option the following
XML:
<example />
will be formatted to :
<example><example>
collapse
: collapse empty elements. With this option the
following XML:
<example></example>
will be formatted to :
<example />
ignore
: keeps the original XML content for empty elements.
Modifier and Type | Method and Description |
---|---|
static XMLFormattingOptions.EmptyElements |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XMLFormattingOptions.EmptyElements[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XMLFormattingOptions.EmptyElements expand
public static final XMLFormattingOptions.EmptyElements collapse
public static final XMLFormattingOptions.EmptyElements ignore
public static XMLFormattingOptions.EmptyElements[] values()
for (XMLFormattingOptions.EmptyElements c : XMLFormattingOptions.EmptyElements.values()) System.out.println(c);
public static XMLFormattingOptions.EmptyElements valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.