Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in validating xml file which has schema

 
SANJAY KUMAR
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to learn schema. I wrote one a.xml which includes a.xsd. WHen I am trying to validate xml using xerces parser, I am getting
SchemaLocation: schemaLocation value = 'a.xsd' must have even number of URIs.
error.
This is entry from a.xml file
<juicers xmlns ="."
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="a.xsd">

Any help is appreciated.
Thanks
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try giving the namespace a prefix.
- madhav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic