| Modifier and Type | Field and Description |
|---|---|
static XmlElement[] |
EMPTY_ARRAY |
static NodeId |
ID
Deprecated.
use
Identifiers.XmlElement instead. |
static String |
UTF8_BOM |
| Constructor and Description |
|---|
XmlElement(byte[] encodedDocument)
Create XML Element with UTF8 encoded XML document.
|
XmlElement(Node node)
Create new XML Element from XML Node.
|
XmlElement(String document)
Create new XML Element from XML document.
|
| Modifier and Type | Method and Description |
|---|---|
XmlElement |
clone() |
boolean |
equals(Object obj) |
byte[] |
getData()
Get the XmlElement as UTF8 encoded document.
|
Node |
getNode()
Returns the data as
Node, assuming it was valid XML. |
String |
getValue()
getValue.
|
int |
hashCode() |
String |
toPrettyString(boolean includeXmlHeader,
int indentationLevel)
Returns a "pretty print" version of
toString() with the chosen indentation level. |
String |
toString() |
@Deprecated public static final NodeId ID
Identifiers.XmlElement instead.public static final XmlElement[] EMPTY_ARRAY
public static final String UTF8_BOM
public XmlElement(byte[] encodedDocument)
encodedDocument - an array of byte.public XmlElement(Node node)
node - xml nodepublic XmlElement clone()
public byte[] getData()
public Node getNode() throws IllegalStateException
Node, assuming it was valid XML. If it is not, an
IllegalStateException is thrown instead.
Getter for the field node.
Node object.IllegalStateExceptionpublic String toPrettyString(boolean includeXmlHeader, int indentationLevel)
toString() with the chosen indentation level. If
the 'includeXmlHeader is true, the xml header is included. Note that if the getValue()
is not a valid XML document, this method returns it as-is.Copyright © 2026. All rights reserved.