|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Facing problem when validating XML with multiple root node Schema
From: <noah_mendelsohn@us.ibm.com>
Date: Wed, 13 Oct 2004 16:17:50 -0400 To: Vineet Chopra <incivinci@gmail.com> Cc: xmlschema-dev@w3.org Message-ID: <OF00ACCDB8.70A92AD2-ON85256F2C.006DE80F@lotus.com> It's probably necessary to look at your schema to find the bug. Could you post it to the list? In particular, I'm curious whether you've ensured that you've defined a global as opposed to local element for "Request". Thanks. -------------------------------------- Noah Mendelsohn IBM Corporation One Rogers Street Cambridge, MA 02142 1-617-693-4036 -------------------------------------- Vineet Chopra <incivinci@gmail.com> Sent by: xmlschema-dev-request@w3.org 10/12/2004 08:50 AM Please respond to Vineet Chopra To: xmlschema-dev@w3.org cc: (bcc: Noah Mendelsohn/Cambridge/IBM) Subject: Facing problem when validating XML with multiple root node Schema 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 ChopraReceived on Wednesday, 13 October 2004 20:20:33 GMT |
Subscribe in XML format
|






