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, getSAXResult, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildren, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumebuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactorystatic final String XML_10
static final String XML_11
OMElement getOMDocumentElement()
null if the document doesn't have any children
of type OMElementvoid setOMDocumentElement(OMElement documentElement)
Some models (such as SOAP) may throw an exception if the specified element is not allowed as a root element.
documentElement - the new document element; must not be nullIllegalArgumentException - if the parameter is nullString 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 © The Apache Software Foundation. All Rights Reserved.