Mike,
Got it. Many Thanks again.
Lynn
-Original Message-
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 17, 2008 9:29 AM
To: j-users@xerces.apache.org
Subject: RE: xerces does not validate dtd even though it is set to true
Hi Lynn,
Register an
Plus, I am using xerces 2_9_1 package.
> > Just with these three files, I get back the result of:
> >
> > Temp.xml: 63 ms (3 elems, 3 attrs, 0 spaces, 232 chars) And no error
> > caught.
> >
> >
> > -----Original Message-
> > From: Michael Gla
?
-Original Message-
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2008 3:41 PM
To: j-users@xerces.apache.org
Subject: RE: xerces does not validate dtd even though it is set to true
Hi Lynn,
The document you attached is different than the one you originally
---
> From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 16, 2008 2:22 PM
> To: j-users@xerces.apache.org
> Subject: RE: xerces does not validate dtd even though it is set to true
>
> Hi Lynn,
>
> Likely there's something else going on here which you h
ms (3 elems, 3 attrs, 0 spaces, 232 chars)
And no error caught.
-Original Message-
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2008 2:22 PM
To: j-users@xerces.apache.org
Subject: RE: xerces does not validate dtd even though it is set to true
Hi
o see the error
> message either.
> I turned on the validation in the Counter sample as well.
>
>
> -Original Message-
> From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 16, 2008 11:22 AM
> To: j-users@xerces.apache.org
> Subject: Re: xerce
ssage-
From: Michael Glavassevich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2008 11:22 AM
To: j-users@xerces.apache.org
Subject: Re: xerces does not validate dtd even though it is set to true
Hi Lynn,
Hard to believe that Xerces isn't reporting this error. When I try your
ex
Hi Lynn,
Hard to believe that Xerces isn't reporting this error. When I try your
example with the sax.Counter sample I get:
[Error] label.xml:4:14: Attribute "A1" is required and must be specified
for element type "LABEL".
Validation errors are non-fatal. Are you sure that you're registering an
Hi,
In my DTD, I have one of the attribute name as a required attribute.
However, when I used it and do not have it in the xml, Xerces does not
return any error.
I have factory.setValidating(true) and
xmlReader.setFeature("http://xml.org/sax/features/validation";, true).
Here is the sample DTD