Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Facing problem when validating XML with multiple root node Schema

From: Vineet Chopra <incivinci@-----.--->
To: xmlschema-dev@--.---
Date: 10/12/2004 8:51:00 PM
Hello,

I am facing a problem while validating an XML document against a
schema, using JDOM with XercesJ parser.

Description -

My code is consuming XML messages sent over HTTP Connection. I want to
validate the XML messages before parsing the same. For this I have
created a single Schema which defines all incoming XML messages. The
resultant schema has multiple root nodes.

The code validates one root node for an incoming XML mesaage but fails
to validate root nodes of another XML messages.

The error which I get is 

Error: cvc-elt.1: Cannot find the declaration of element 'Request'. at
line 1, column 10 in entity null

The schema does contain a definition for the tag "Request". I have
cross checked it umpteen times.

I shall be thankful if you throw some light on this.

Vineet Chopra


From Norman.Walsh@S... Tue Oct 12 15:02:53 2004
Received: fro


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent