File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Error in validating xml file which has schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Error in validating xml file which has schema " Watch "Error in validating xml file which has schema " New topic
Author

Error in validating xml file which has schema

SANJAY KUMAR
Greenhorn

Joined: Mar 27, 2002
Posts: 25
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


SCJP, SCWCD , SCBCD
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Try giving the namespace a prefix.
- madhav


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in validating xml file which has schema