Closed martin-honnen closed 2 years ago
Yes, I think that should.
The problem is that URI_FOR_SYSTEM is initially false. The catalog says (correctly) that an XSD file is a URI and not an XML system identifier. But the .NET parser only has an "EntityResolver" and that, naturally, only searches for system and public identifiers because that's how entities are identified.
If you enable URI_FOR_SYSTEM:
resolverConfig.SetFeature(ResolverFeature.URI_FOR_SYSTEM, true);
You're telling the resolver to treat URI entries like system entries for the purpose of resolution and then it works.
Trouble is, shipping the resolver with that set to false sort of makes the data assembly less useful.
I expect I should bump the version and change the default.
When I run
I get (.NET 5, Windows 10)
Any idea whether that should work?