Question

I am creating an XML schema for a program that will be distributed to multiple computers. These other computers will be making their own xml files to conform to this schema. In order for them to reference the schema, the need to have access to that schema. I do not have a website I can post the schema on like is commonly done. I can package the schema along with the program, but then I am not sure how to make it easy for the users of the other computers to reference the schema in their xml files. The file path for each computer would be different.

I want to do something like ROS Launch files where they use $(find program_name)/my_schema.xsd (http://wiki.ros.org/roslaunch/XML) but I do not think that works outside of those launch files. Any suggestions?

Thanks in advance!

Was it helpful?

Solution

If you do not have a website at which to serve your XML Schema file, you can always use a cloud service such as Dropbox or Google Drive, both of which will allow you to make a file publicly available via a URL.

If for some reason you do wish to package the XSDs with the program or XML files of your project, you can avoid problems locating the XSDs on different machines via

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top