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()
Returns 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 rootElement)
Sets 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, buildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
static final String XML_10
static final String XML_11
OMElement getOMDocumentElement()
void setOMDocumentElement(OMElement rootElement)
rootElement
- 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-2013 The Apache Software Foundation. All Rights Reserved.