Hi Huzefa, You seem to be trying to cast the JAXP [1] SAXParser to a PSVIProvider. If you're using JAXP, you need to retrieve the underlying XMLReader and cast this object to a PSVIProvider. To answer your other question. If you want to get PSVI information you need to keep a reference to a PSVIProvider (this is also the parser) so that it's accessible during the relevant callbacks.
[1] http://xml.apache.org/xerces2-j/javadocs/api/javax/xml/parsers/SAXParser.html On Sat, 8 Nov 2003, Huzefa Hakimi wrote: > Thanks. > I have some related to it problems > > 1. > > ..... > SAXParser saxParser = factory.newSAXParser(); > PSVIProvider psvi = (PSVIProvider)saxParser; > ..... > > this code snipet gives me ClassCastException? > > At this moment how is it related to AbstractSaxParser provided by Xerces > which implements PSVIProvider > > 2. All the SAXHandlers implemented callback methods reside in different class > Handlers so do we have to pass around this instance of PSVIProvider to the > handler class implementation to take action. Sorry am in dual state of mind. --------------------------- Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
