public interface OMDocument extends OMContainer
Modifier and Type | Field and Description |
---|---|
static String |
XML_10
Field XML_10 XML Version 1.0
|
static String |
XML_11
Field XML_11 XML Version 1.1
|
Modifier and Type | Method and Description |
---|---|
String |
getCharsetEncoding()
Get the character set encoding scheme.
|
OMElement |
getOMDocumentElement()
Get the document element.
|
String |
getXMLEncoding()
Get the charset encoding of this document as specified in the XML declaration.
|
String |
getXMLVersion()
Returns the XML version.
|
String |
isStandalone()
XML standalone value.
|
void |
setCharsetEncoding(String charsetEncoding)
Sets the character set encoding scheme to be used.
|
void |
setOMDocumentElement(OMElement documentElement)
Set the document element of the XML document.
|
void |
setStandalone(String isStandalone) |
void |
setXMLEncoding(String encoding)
Set the charset encoding for the XML declaration of this document.
|
void |
setXMLVersion(String version)
Sets the XML version.
|
addChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildren, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, isComplete, serialize, serialize, serializeAndConsume
clone, getOMFactory
static final String XML_10
static final String XML_11
OMElement getOMDocumentElement()
null
if the document doesn't have any children
of type OMElement
void setOMDocumentElement(OMElement documentElement)
documentElement
- the new document element; must not be null
IllegalArgumentException
- if the parameter is null
String getCharsetEncoding()
null
when it is not known, such as
when the document was created in memory or from a character stream.null
if the encoding is not
knownvoid setCharsetEncoding(String charsetEncoding)
charsetEncoding
- String getXMLVersion()
void setXMLVersion(String version)
String getXMLEncoding()
null
if the
document didn't have an XML declaration or if the encoding
attribute was
not specified in the XML declarationvoid setXMLEncoding(String encoding)
encoding
- the value of the encoding
attribute of the XML declarationString isStandalone()
void setStandalone(String isStandalone)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.