File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML" Watch "XML" New topic
Author

XML

Sujatha Rangarajan
Greenhorn

Joined: Jul 19, 2006
Posts: 23
Hi,

Im trying to build a xml using a java object,xsd and maping file using castor.
The xml is generated properly, but when validating using xsd.it shows the error in generated xml file as "SchemaLocation: schemaLocation value = 'sam.xsd' must have even number of URIs.".".. can anyone help me in getting rid of this error.. also it says the declaration of elemnts cannot be found..
Thanks in advance,
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
The schemalocation attribute is used to tie a namespace to a schema. Hence, the value of this attribute is a pair of URI and NOT a single URI value. It is actually a name-value pair that forms the value of this attribute.

Additional details can be found in the specification.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Sujatha Rangarajan,

This entire forum is devoted to the subject of XML. Therefore titling your post "XML" conveys no information whatsoever. Please read this and take the time in future posts to use a meaningful title.

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML
 
Similar Threads
location of xsd file
XML Schema Validation with Xerces
building error when validating against schema using jdom
Error in validating xml file which has schema
XSD validation in XML