Providing a better message than "Premature end of file " 2003-02-11 - By Aleksandar Milanovic
Sigh. And I thought that there was an easy answer to this. Now I have to dig.... :) Alex
> -----Original Message----- > From: sandygao@(protected) [mailto:sandygao@(protected)] > Sent: Tuesday, February 11, 2003 2:23 PM > To: xerces-j-user@(protected) > Subject: Re: Providing a better message than "Premature end of file" > > > Could you provide more detailed information about how you got such error? > Sounds like a bug to me: unknown namespace should only lead to validation > errors (something like "no decl found for ..."), instead of a fatal error > like this. > > Thanks, > Sandy Gao > Software Developer, IBM Canada > (1-905) 413-3255 > sandygao@(protected) > > > > > > "Aleksandar > > Milanovic" To: > "Xerces-J-User" <xerces-j-user@(protected)> > <amilanovic@(protected) cc: > > sinc.com> Subject: > Providing a better message than "Premature end of file" > > > 02/11/2003 04:57 > > PM > > Please respond to > > xerces-j-user > > > > > > > > > Hi, > > When Xerces is configured with the external-schema-location, it complains > about "Premature end of file" if an unknown namespace is encountered upon > validation. I would like to provide a more descriptive error message. My > first guess is that I should use entity handlers, but it is not > clear to me > at what point they are called (before the external-schema-locations are > consulted or afterwards)? Also, how does lazy schema caching affect this > order? > > thx > Alex > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) > For additional commands, e-mail: xerces-j-user-help@(protected) > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) > For additional commands, e-mail: xerces-j-user-help@(protected) > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|