On Sun Jun 22 19:30:41 2025 +0000, Shaun Ren wrote:
I've done it by [accessing the internal state of libxml2](https://gitlab.winehq.org/shaunren/wine/-/commit/cf863235b2267cce904ccfa9aea...).
Anything like that looks fragile, if exact compliance with those offsets is necessary. If document structure is simple enough, encoding is UTF-16 always, whole document is available at once, no dtd or entity expansion is necessary, not xsl/xpath is needed, it might even be an option to use some simplified parser similar to what we have for activation contexts in ntdll.