Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to place the XML Schema

 
Karen Baog
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?
 
Madhav Lakkapragada
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic