Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using local schema

Status
Not open for further replies.

xx396

Programmer
Nov 17, 2005
1
GB
I'm using XML in a purely offline environment and using xsi:noNamespaceSchemaLocation to specify what schema to validate against. However just putting "schema.xsd" means that the instance document has to always be in the same folder as the schema to validate. This isn't always desirable as customers are bound to move their instance files around on disk and expect them to import correctly. If I specify a full path to the schema, it'll break as soon as a folder changes or it gets moved to a new machine or whatever. I expected it to search the PATH environmental variable to find the local schema; is there anyway of doing this as my implementation seems pretty unusable in its current state

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top