public interface XmlDocument extends XmlElement
TYPE_BINARY, TYPE_BOOLEAN, TYPE_DATE, TYPE_DATETIME, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_STRING, TYPE_TIME| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a copy of this XmlDocument.
|
boolean |
equals(Object o)
Compare this XML document and all of its contained information with another XML document for equality.
|
String |
getDocumentComment()
Get the XML comment that appears outside of the root element.
|
String |
getDtdName()
Get the public identifier of the DTD (DOCTYPE) for the document.
|
String |
getDtdUri()
Get the URI of the DTD (DOCTYPE) for the document.
|
String |
getEncoding()
Get the encoding string for the XML document.
|
int |
hashCode()
Provide a hash value for this XML document and all of its contained information.
|
void |
setDocumentComment(String sComment)
Set the XML comment that appears outside of the root element.
|
void |
setDtdName(String sName)
Set the public identifier of the DTD (DOCTYPE) for the document.
|
void |
setDtdUri(String sUri)
Set the URI of the DTD (DOCTYPE) for the document.
|
void |
setEncoding(String sEncoding)
Set the encoding string for the XML document.
|
String |
toString()
Format the XML document and all its contained information into a String in a display format.
|
void |
writeXml(PrintWriter out, boolean fPretty)
Write the XML document, including an XML header and DOCTYPE if one exists.
|
addAttribute, addElement, ensureElement, findElement, getAbsolutePath, getAttribute, getAttributeMap, getComment, getElement, getElementList, getElements, getName, getQualifiedName, getRoot, getSafeAttribute, getSafeElement, setAttribute, setComment, setNamegetBinary, getBinary, getBoolean, getBoolean, getDate, getDate, getDateTime, getDateTime, getDecimal, getDecimal, getDouble, getDouble, getInt, getInt, getLong, getLong, getParent, getString, getString, getTime, getTime, getValue, isAttribute, isContent, isEmpty, isMutable, setBinary, setBoolean, setDate, setDateTime, setDecimal, setDouble, setInt, setLong, setParent, setString, setTime, writeValueString getDtdUri()
void setDtdUri(String sUri)
sUri - the document type URIString getDtdName()
void setDtdName(String sName)
sName - the DTD public identifierString getEncoding()
void setEncoding(String sEncoding)
sEncoding - the encoding that the document will useString getDocumentComment()
void setDocumentComment(String sComment)
sComment - the document commentvoid writeXml(PrintWriter out, boolean fPretty)
writeXml in interface XmlElementout - a PrintWriter object to use to write tofPretty - true to specify that the output is intended to be as human readable as possibleString toString()
int hashCode()
boolean equals(Object o)
Object clone()
clone in interface XmlElementclone in interface XmlValue