Creates a Document
from only the document element.
Creates a Document
from only the document element. The URI is empty, and so are the collections of top-level
comments and processing instructions.
Creates a Document
from an optional URI, the document element, and the top-level comments and processing
instructions, if any.
Creates a Document
from an optional URI, the document element, and the top-level comments and processing
instructions, if any. Unlike the primary constructor, this factory method defaults the processing instructions and
comments to empty collections. In other words, only the optional URI and the document element are mandatory parameters.