[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Facing problem when validating XML with multiple root node Schema

From: Vineet Chopra <incivinci@gmail.com>
Date: Tue, 12 Oct 2004 16:50:41 +0400
Message-ID: <d83486c704101205504ba1bc5a@mail.gmail.com>
To: xmlschema-dev@w3.org
xml messages and parsing

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
Received on Tuesday, 12 October 2004 12:51:51 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.