• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Where to place the XML Schema

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic