Improve DOM's handling of the XML declaration with methods to return values that reflect the actual settings, or no declaration.