ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  XML Document Validation with an XML Schema
Subject:   Error coming
Date:   2007-01-09 15:06:15
From:   javanew
Response to: Error coming

Thanks for the quick reply Deepak. I will try what you advised.
Actually, I was reading xml and xsd from file system and passing them as String. Now I am passing them as InputStream. Now I am getting these errors. Any idea?


cvc-elt.1: Cannot find the declaration of element 'catalog'.
cvc-elt.1: Cannot find the declaration of element 'journal'.
cvc-elt.1: Cannot find the declaration of element 'article'.
cvc-elt.1: Cannot find the declaration of element 'title'.
cvc-elt.1: Cannot find the declaration of element 'author'.
cvc-elt.1: Cannot find the declaration of element 'journal'.
cvc-elt.1: Cannot find the declaration of element 'article'.
cvc-elt.1: Cannot find the declaration of element 'title'.
cvc-elt.1: Cannot find the declaration of element 'author'.
XML Document has Error:true cvc-elt.1: Cannot find the declaration of element 'author'.