Hi Jeff,
Some more details...
I'm using an xsi:schemaLocation attribute set on the root element of the document. The location is an external reference to an HTTP server where the document is being stored.
===== Begin XML Snippet =====
<?xml version="1.0" encoding="UTF-8"?>
<RenderRequest
xmlns="http://schemas.mysite.com/MySite/v1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.mysite.com/MySite/v1_0 http://schemas.mysite.com/MySite/schemas/v1_0/RenderRequest.xsd">
<RenderingInformation>
<Width>750</Width>
<Height>300</Height>
<Format>PNG</Format>
</RenderingInformation>
.
.
.
===== End XML Snippet =====
I have validation turned on.
I am getting a reference to the SAXParser through DOM4J v1.4. So I'm creating an org.dom4j.io.SAXParser object and passing it true. I've confirmed that the SAX Parser implementation that DOM4J utilizes is the SAXParser from my Xerces-J 2.5 jar.
Interestingly enough, if I use Xerces 1.4 I don't have any problems. The XML document is successfully validated without any problems.
Thanks for yours and anyone else's help.
Brian
-----Original Message-----
From: Jeffrey Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 25, 2003 3:49 PM
To: [EMAIL PROTECTED]
Subject: Re: No Grammar Found Messages
Hi Rick,
How do you bind your document instances to the Schemas? Are you using a
noNamespaceSchemaLocation or SchemaLocation?
Can you append at least a the first few line of your instance document?
More details would also help, are you validating? etc,
Regards,
Jeffrey Rodriguez
Silicon Valley
>From: "Rickabaugh, Brian (GECP, MABG, 094855)"
><[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: No Grammar Found Messages
>Date: Thu, 25 Sep 2003 15:12:40 -0400
>
>Hello Everyone,
>
>I'm having some trouble validating against an XSD in Xerces-J 2.5. These
>are the errors encountered during parsing.
>
>[Line 2, Column 22] Document is invalid: no grammar found.
>[Line 2, Column 22] Document root element "Book", must match DOCTYPE root
>"null".
>
>Anyone have any ideas as to what is going on here? I'm not sure why it is
>looking for a DOCTYPE?...
>
>Thanks in advance.
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Help protect your PC. Get a FREE computer virus scan online from McAfee.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
