• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic