The Document class contains the following methods:
addChild adds a child Element to the document.
clear sets the Document back to its initial empty state retaining only the ElementFactory association.
createElement creates a new element for the given element type and tag name using the ElementFactory for this Document object.
createOutputStream creates an XML output stream matching the format found on load().
elementDeclarations retrieves an enumeration of the element declarations from the Document Type Definition (DTD).
findEntity retrieves the XML-DATA specification for the named entity.
getCharset retrieves the character set.
getDocType retrieves the document type.
getDTD retrieves the Document's Type Definition (DTD).
getDTDURL retrieves the document type's URL.
getElementDecl returns the XML-DATA specification for the named element.
getEncoding retrieves the character encoding information.
getFileModifiedDate retrieves the last modified date on the source of the URL.
getId retrieves the external identifier.
getOutputStyle retrieves the current output style.
getParent retrieves the parent element.
getRoot retrieves the root node of the XML parse tree.
getStandalone retrieves the standalone information.
getText retrieves the document text.
getType retrieves the document type.
getURL retrieves the URL.
getVersion retrieves the version information.
isCaseInsensitive determines whether the load XML is case insensitive.
load loads the document from the given URL string.
loadexternal determines whether to load external DTDs or entities.
parsed is called when the given element is completely parsed.
parsedAttribute is a delegate to the contained element factory.
removeChild removes the specified child element from the Document.
reportError returns information about the given parse exception that was generated during the load.
save saves the document to the given output stream.
setCaseInsensitive determines whether the next XML loaded will be treated as case sensitive.
setCharset sets the character set.
setEncoding sets the character encoding for output.
setLoadExternal determines whether to load external DTDs or entities.
setOutputStyle sets the style for writing to an output stream.
setShortEndTags determines whether to allow short end tags.
setStandalone sets the RequiredMarkupDeclaration (RMD) stored in the <?XML ...?> tag.
setText passes the text through to the root node, if there is a root node.
setURL is an alias for load and is here only for compatibility reasons.
setVersion sets the version number stored in the <?XML ...?> tag.
shortEndTags returns whether short end tags are allowed.