[Home] [By Thread] [By Date] [Recent Entries]
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" <roblugt@e...>
To: "Rajesh AVRS" <rajesh.ram@w...>; <xml-dev@l...>
Sent: Tuesday, January 22, 2002 4:02 PM
Subject: Re: I am going crazy!!
> From: "Rajesh AVRS" <rajesh.ram@w...>
> >
> > 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
>
----------------------------------------------------------------------------------------------------------------------- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:mailadmin@w... and delete this mail from your records. ------------------------------------------------------------------------------------------------------------------------
|

Cart



