Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven


Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my application I am required to validate an instance document with a schema and need to report any errors in some specific format. Things like a mandatory attribute missing, an unexpected attribute found are some of the sample findings that the application need to interpret. For example, one such validation could be the following from the xerces parser.

"cvc-complex-type.3.2.2: Attribute 'myid' is not allowed to appear in element xyz"

My question is how can I derive information so that I can distinguish the error, ie, whether it is a required attribute missing, an unexpectedattribute present in certain element etc ..

What are these cvc-complex-type codes ? Is it specified anywhere that cvc-complex-type.3.2.2 tells about non-allowedattributes ? I did not get much info from google search.

Highly appreciate any help.

Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter
    Bookmark Topic Watch Topic
  • New Topic