Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Where to place the XML Schema

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I am given an XML schema and a XML document that requires validation against the XML schema, where should the XML schema be placed?

How will the XML document know where to find the XML schema?
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the schemaLocation attribute value is what you would want to look into to determine this. The XML Validator uses this value to determine the location of the schema file.

For local testing you can put the schema file and the XML instance file in the same directory and try to validate the schema.

- m


Edit Comment:

Damn, it took be just ten days :roll: to reply to this - well, in case you are still wondering. Sorry about the delay, things have been a bit chaotic in life.

[ July 31, 2005: Message edited by: Madhav Lakkapragada ]
[ July 31, 2005: Message edited by: Madhav Lakkapragada ]
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic