• 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

Error in validating xml file which has schema

 
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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try giving the namespace a prefix.
- madhav
 
    Bookmark Topic Watch Topic
  • New Topic