RE: xerces does not validate dtd even though it is set to true

2008-04-17 Thread Huynh, Lynn T.
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

RE: xerces does not validate dtd even though it is set to true

2008-04-17 Thread Michael Glavassevich
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

RE: xerces does not validate dtd even though it is set to true

2008-04-17 Thread Huynh, Lynn T.
? -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

RE: xerces does not validate dtd even though it is set to true

2008-04-16 Thread Michael Glavassevich
--- > 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

RE: xerces does not validate dtd even though it is set to true

2008-04-16 Thread Huynh, Lynn T.
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

RE: xerces does not validate dtd even though it is set to true

2008-04-16 Thread Michael Glavassevich
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

RE: xerces does not validate dtd even though it is set to true

2008-04-16 Thread Huynh, Lynn T.
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

Re: xerces does not validate dtd even though it is set to true

2008-04-16 Thread Michael Glavassevich
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

xerces does not validate dtd even though it is set to true

2008-04-16 Thread Huynh, Lynn T.
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