Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML" Watch "XML" New topic


Sujatha Rangarajan

Joined: Jul 19, 2006
Posts: 23

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 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
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

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.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: XML
It's not a secret anymore!