Troubleshooting — EricksonLopez.Xml.Validation
L3StableNuGet: v1.0.0Local HEAD: v2.0.0AOT: Full
Common package, schema-cache, and security rejection issues in EricksonLopez.Xml.Validation (1.0.0).
Package Naming & Custom IXmlSchemaCache Stubs
Section titled “Package Naming & Custom IXmlSchemaCache Stubs”- No
EricksonLopez.XmlNuGet package: Always installEricksonLopez.Xml.Validation(--version 1.0.0). - Mocking in unit tests: Because
XmlSchemaValidatorrequires internalIXmlSchemaSetProvider(ADR-017), use a realnew XmlSchemaCache()instance in unit tests or mockIXmlSchemaValidatordirectly rather than mockingIXmlSchemaCache.
<!DOCTYPE ...>rejected:DtdProcessing.Prohibitrejects any XML containing DTD declarations asResult.Failure.- Root element warnings vs errors: In
1.0.0, enableTreatWarningsAsErrors = trueif undeclared root elements should fail validation (2.0.0localBC-001upgrades this unconditionally viaIsRootElementDeclared).