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 only the document element and optional URI.
Creates a Document
from only the document element and optional URI. The collections of top-level
comments and processing instructions are empty.
Creates a Document
from an optional URI, an optional XML declaration, the document element, and the top-level comments and processing
instructions, if any.
Creates a Document
from an optional URI, an optional XML declaration, 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.