Sign in Email. Forgot your password? Ask a Question. Please Sign up or sign in to vote. See more: XmlReader. If not, is there a way round the problem of having to maintain different versions of the XML file on my local development machine and on the production server? Kind wishes, Patrick. Posted Oct am Patrick Skelton. Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. Not a problem: HTML. Copy Code. Posted Oct am Dave Kerr.
Got it now, thanks. Your reply puts my mind at ease because I had read a lot of sometimes contradictory information on schemas, and at least one website I visited said something about relative URLs not being allowed and most only gave explicit full URLs.
I think my local working copy was actually working but the Visual Studio Intellisense just hadn't got it until I explicitly added my schema. Yet this works perfectly elsewhere. I'm new to XML Schemas and still trying to get my head around this. Improve this question. Sled Elarys Elarys 3 3 gold badges 9 9 silver badges 19 19 bronze badges.
Add a comment. Active Oldest Votes. Improve this answer. Sprotty Sprotty 5, 2 2 gold badges 29 29 silver badges 47 47 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. In this case, you only need to specify the file name such as "Mydata. If the Mydata. To avoid this type of outcome, its a good practice to always validate your schema files first prior to attempting to use them in validation of other documents.
The xsi:schemaLocation attribute works well in situations where namespace prefixes are explicitly declared and used in the XML document you want to validate. In order for the MyData. If they do not match, the schema at the specified location would never be invoked during validation. In this case, you only need to specify the file name like this:. Another possibility is to place the schema in the same directory as the application that uses the schema cache.
0コメント