Thanks!
-Original Message-
From: Neil Delima [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 8:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Document is invalid: no grammar found.
Try setting the following features to true and see if it helps.
http://apache.org/xml
Thanks so much!
-Original Message-
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 8:54 AM
To: [EMAIL PROTECTED]
Cc: Hoebel, John
Subject: Re: Document is invalid: no grammar found.
Hello John,
You need to turn on schema validation [1] as well
Try setting the following features to true and see if it helps.
http://apache.org/xml/features/validation/schema
http://apache.org/xml/features/validation/schema-full-checking
Hello John,
You need to turn on schema validation [1] as well otherwise the parser
will try to validate against a DTD.
Try adding this to your code:
parser.setFeature("http://apache.org/xml/features/validation/schema";,
true);
Hope that helps.
[1] http://xml.apache.org/xerces2-j/features.html#
ED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: Document is invalid: no grammar found
>Date: Thu, 24 Apr 2003 16:04:29 -0400
>
>You can try making an entity resolver. At least with this you can see
>exactly where it is looking and force it if you have too..
>
>Doug
gt;
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Document is invalid: no grammar found
>Date: Thu, 24 Apr 2003 09:42:33 +0530
>
>Hi Andy,
>
>As the exception says - no grammar is found for the instance.
With so little
>information
a test schema validation prog as a standalone app to rule out this difference.
Any more advice would be greatly appreciated...
Andy
>From: "Rahul Srivastava" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Document is invalid
Hi
Andy,
As the
exception says - no grammar is found for the instance. With so little
information available, my guess is, the URI used, is being resolved to some
other location, than where the Schema is present, while the Server is
running. As the Server has its own document root, you mi