Posted 9 years ago by Ashwini
Version: 4.0.0283
Avatar
Hi,

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 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 9 years ago by Ashwini
Avatar
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 (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.