• Post Reply Bookmark Topic Watch Topic
  • New Topic

cvc-complex-type  RSS feed

arjuna naga
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!