:+1: The original version had support for version and encoding, but not for the `standalone` attribute. It also assumed a default for the version which should be left up to `DOMDocument` and didn't work without specifying an encoding. The `$xmlOptions` was introduced to avoid duplicating the code for each context option and property since it's a straightforward mapping.