public interface XMLDocument
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Return the XML encoding of the document, or null if not specified.
|
String |
getNoNamespaceSchemaLocation()
Return the value of the noNamespaceSchemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if not present.
|
String |
getRootElementName()
Return the name of the root element.
|
String |
getRootElementURI()
Return the targetNamespace URI for the root element.
|
DataObject |
getRootObject()
Return the root DataObject for the XMLDocument.
|
String |
getSchemaLocation()
Return the value of the schemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if not present.
|
String |
getXMLVersion()
Return the XML version of the document, or null if not specified.
|
boolean |
isXMLDeclaration()
Return the XML declaration of the document.
|
void |
setEncoding(String encoding)
Set the XML encoding of the document, or null if not specified.
|
void |
setNoNamespaceSchemaLocation(String schemaLocation)
Sets the value of the noNamespaceSchemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if it should not be present.
|
void |
setSchemaLocation(String schemaLocation)
Sets the value of the schemaLocation declaration
for the http://www.w3.org/2001/XMLSchema-instance namespace in the
root element, or null if it should not be present.
|
void |
setXMLDeclaration(boolean xmlDeclaration)
Set the XML declaration version of the document.
|
void |
setXMLVersion(String xmlVersion)
Set the XML version of the document, or null if not specified.
|
DataObject getRootObject()
String getRootElementURI()
String getRootElementName()
String getEncoding()
void setEncoding(String encoding)
encoding
- boolean isXMLDeclaration()
void setXMLDeclaration(boolean xmlDeclaration)
xmlDeclaration
- the XML declaration version of the document.String getXMLVersion()
void setXMLVersion(String xmlVersion)
xmlVersion
- the XML version of the document, or null if not specified.String getSchemaLocation()
void setSchemaLocation(String schemaLocation)
schemaLocation
- the value of the schemaLocation declaration, or null.String getNoNamespaceSchemaLocation()
void setNoNamespaceSchemaLocation(String schemaLocation)
schemaLocation
- the value of the noNamespaceSchemaLocation declaration, or null.Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.