The node representing the entire document has these attributes:
.baseURI
The document's base URI, or None if
unknown.
.doctype
At present, 4Suite does not support the attachment
of document type information from a <!DOCTYPE ...> declaration. In the
future, this attribute may contain the document
type as a DocumentType node. At
present, it will be None.
.documentElement
Contains the root element of the document as an
Element node. For example, if
the document is XHTML, this attribute will contain
the html element.
.publicId
The document's public identifier.
If the document was read from a file with a DOCTYPE declaration containing a public
identifier, that identifier will be stored here.
You may also set this attribute.
.systemId
The document's system identifier.
If the document was read from a file with a DOCTYPE declaration containing a system
identifier, that identifier will be stored here.
You may also set this attribute.
If a document with a system identifier is
serialized (see Section 11, “Printing a document”),
a <!DOCTYPE ...> declaration
will be generated.
If you are not just reading an XML document, but modifying one or generating one from scratch, see Section 12, “Creating a document from scratch: factory methods”.