• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML

 
Sujatha Rangarajan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic