• 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

Unexpected element 'UUID'...expected element 'UUID' ???

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to validate an XML doc against a schema and am getting this strange error. This is the actual error from the parser :

cvc-complex-type.2.4.a: Invalid content was found starting with element 'UUID'. One of '{UUID}' is expected

the <UUID> element is the first element in a complex type, the complex type is a sequence. The complex typed element is also the root element of the document. So is this basically saying there is a problem with the root element?

Besides the sequence, the root element only has a simple attribute required, and that attribute is in the instance document that I'm trying to validate. The root element also contains all the various 'xmlns="..", xmlns:xsi="...", and xsi:schemaLocation=" " required for schema validation.

Any ideas? I'm no Schema expert, but I've done a little work on it.

XML instance :



Schema snippet :



[ January 02, 2007: Message edited by: B Preston ]
[ January 02, 2007: Message edited by: B Preston ]
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The element in the XML document is a UUID element in the "http://covver.lmig.com/covver/xsd/request" namespace, but the schema is calling for a UUID element in the "http://covver.company.com/covver/xsd/request" namespace, no? At least that's how I read it.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic