Re: [xml-dev] I am going crazy!!

From
Rajesh AVRS <>
To
Date
2002-01-22T10:28:36Z
ID
<056601c1a32f$8cd4a0e0$9f1fc80a@ITPEXE107981>
Thread
Re: [xml-dev] I am going crazy!!
Hi Rob,

Thanking you for the reply.

Just now I realized it and made an error Handler.  What would be the typical
implementation of the error Handler class?  I am just throwing the
SAXParseException in the 'error()' & 'fatalError()' methods like this:

 public void error(SAXParseException saxe) throws SAXParseException
 {
  throw new SAXParseException(saxe.toString(), saxe.getPublicId(),
saxe.getSystemId(), saxe.getLineNumber(), saxe.getColumnNumber());
 }

does it make any sense?  I am still trying to understand what I did :-))

Rajesh
----- Original Message -----
From: "Rob Lugt" <>
To: "Rajesh AVRS" <>; <>
Sent: Tuesday, January 22, 2002 4:02 PM
Subject: Re: [xml-dev] I am going crazy!!


> From: "Rajesh AVRS" <>
> >
> > I have written a Java application which simply parses the given XML
file.
> > But now I want to turn the validation ON, so that it will validate the
XML
> >...
> > But even when I define an element which is not specified in the DTD it
is
> > parsing the XML file without any errors.  I am going crazy.  Please help
> me
> > out.
>
> Hi Rajesh,
>
> Have you registered an ErrorHandler?  If not, your application will not
get
> to see validity errors.
>
> Regards
> ~Rob
>