Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.Xml.Validation

Common package, schema-cache, and security rejection issues in EricksonLopez.Xml.Validation (1.0.0).

  • No EricksonLopez.Xml NuGet package: Always install EricksonLopez.Xml.Validation (--version 1.0.0).
  • Mocking in unit tests: Because XmlSchemaValidator requires internal IXmlSchemaSetProvider (ADR-017), use a real new XmlSchemaCache() instance in unit tests or mock IXmlSchemaValidator directly rather than mocking IXmlSchemaCache.
  • <!DOCTYPE ...> rejected: DtdProcessing.Prohibit rejects any XML containing DTD declarations as Result.Failure.
  • Root element warnings vs errors: In 1.0.0, enable TreatWarningsAsErrors = true if undeclared root elements should fail validation (2.0.0 local BC-001 upgrades this unconditionally via IsRootElementDeclared).