Posted 11 years ago by Ashwini
Version: 4.0.0283

Is it possible to load the schema by using the URL of where the schema is located.

I tried using the LoadSchemaFile and specify the URL Path

for ex:LoadSchemaFile("http://servername/Schema/Schema.xsd"). i got an exception that "URI format are not supported".

Could you please help me as this is very important to load a schema from a diff. location.

Comments (2)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Ashwini,

LoadSchemaFile only works for local file paths (e.g. C:\...). There is a LoadSchema method you can use instead where you can pass it an XmlSchema. So just create your XmlSchema object however you like from the URL and then pass that to our LoadSchema method.

Actipro Software Support

Posted 11 years ago by Ashwini
Thank you so much for the quick response. I was able to load the schema as mentioned by you. Thank you again.
The latest build of this product (v2020.1 build 0402) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.