[xml] Validation - controlling schema location directory?



I need to validate a large number of different xml files with schemas provided by 3rd party, most of the schemas import other schemas.

 

The schemaLocation attribute is specified by the creator of the schema and outside my control, schemas are normally but not always “schemaLocationed“ in current directory.

The validation is run from different computers (Windows) in a LAN and I want to avoid having to distribute all schemas to every computer and instead point libxml to a common directory on the server.

 

Is there a way to tell xmlSchemaValidateDoc to pick the schemas from a specified directory, overriding schemalocation directory ?

 

Using libxml2  2 .7.3 Windows dll.

 

Thankful for any help on this.

Geir S.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]