The handling of null values in XML declaration will be different between version 2022 and earlier versions.
For example, if the XML declaration in the XML file has no encoding and standalone, then
In version 2021 or earlier, gettext() will only return version:
version="1.0"
In version 2022, GetXMLDeclaration will return
version="1.0" encoding="UTF-16LE" standalone="no"