'How to validate XML against XSD with imports when blocing access to external schema
I'm trying to validate XMLs against an XSD (OpenXML DrawingML XSD to be precise). For security reasons we have blocked for access to external DTD and Schemas in the SchemaFactory by using the ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_SCHEMA properties.
However, the OpenXML DML XSD contains plenty of references to other XSDs. I have tried to copy the files to be locally available, but the properties also block for file access so no luck there.
How do I validate against an external XSD with imports, when access to external schemas is blocked?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
