Things seems to be working after following the notes
given by Michael. Thanks

At present I am not able to figure out, If I get the
schemainformation() and obtain XSModel from
ElementPSVI, one can get 
1. Elements, attributes, defined
2. Types of corresponding elements and attributes 

But if one has also to capture the relationship
between the types, attributes and elements defined in
Schema, does at xsmodel defines a way for it i.e.
given an element one can find its descendands and
ancestors. 

Thanks for the co-operation provided.

-Huzefa

--- Huzefa Hakimi <[EMAIL PROTECTED]> wrote:
> Thanks Michael.
>  
> It works that ways but as far as I can infer I am
> not using any other JAXP version other than provided
> by Xerces 2.5. And at present am using some of JAXP
> 1.1 methods to use functionality of SAX 2.0 and this
> is embedded within xerces 2.5. Than what can the
> problem be. 
>  
> Thank you once again.
> -Huzefa 
> 
> Michael Glavassevich <[EMAIL PROTECTED]> wrote:
> 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]
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to