libxml2-wasm icon indicating copy to clipboard operation
libxml2-wasm copied to clipboard

Xsd validation fails when encoding is different from the xsd file

Open rajzik opened this issue 2 months ago • 3 comments

When I try to validate xml file with XSD document and the encoding is set in the XML document I get encoding errors in the result.

I am loading XmlDocuments from string so encoding should be ignored.

When I replace encoding with utf-8 everything works

Reproduction

https://github.com/rajzik/libxml-repro

rajzik avatar Oct 07 '25 15:10 rajzik