Hi Dick,

Thanks for your response. Due to some reason, I am not getting mail from 
Michael Glavassevich. I do not know why ? Could you please forward mail to me 
which Michael responded.

Regards
Ajay
--- On Mon, 9/14/09, Dick Deneer <dick.den...@donkeydevelopment.com> wrote:

> From: Dick Deneer <dick.den...@donkeydevelopment.com>
> Subject: Re: Missing PSVI after Validation.
> To: j-users@xerces.apache.org
> Date: Monday, September 14, 2009, 2:43 AM
> 
> Ajay,
> I saw the response from Michael Glavassevich
>  to your problem. As usual he pointed to the real problem.
> Forget the validationHandler and see the mail from
> Michael.
> regards,Dick
> Op 13-sep-2009, om 22:36 heeft ajay bhadauria het
> volgende geschreven:
> Hi
> Dick,
> Thanks
> a lot for response. Thanks also for given example to get the
> PSVI from dbf.
> I
> need to use Validator so in the attached file, I created
> validator object obtained from schema object. Could you
> please guide me how should I create seperate validator
> object ?. I am not aware of validationHandler class. Could
> you please also tell me how I can do that ?
> RegardsAjay 
> ---
> On Sun, 9/13/09, Dick Deneer <dick.den...@donkeydevelopment.com>
> wrote:
>  From:
> Dick Deneer <dick.den...@donkeydevelopment.com>Subject:
> Re: Missing PSVI after Validation.To:
> j-us...@xerces.apache.orgdate:
> Sunday, September 13, 2009, 4:25 PMWithout
> a  separate validator youcan
> just use:             DocumentBuilderFactory
> dbf=
> DocumentBuilderFactory.newInstance();         dbf.setNamespaceAware(true);    
>         dbf.setValidating(true);                
> dbf.setAttribute("http://apache.org/xml/features/validation/schema";,          
>                   Boolean.TRUE);          dbf.setAttribute(                   
>             "http://apache.org/xml/properties/dom/document-class-name";,       
>                       "org.apache.xerces.dom.PSVIDocumentImpl");              
> DocumentBuilder
> docBuilder=
> dbf.newDocumentBuilder();             Document doc 
> =docBuilder.parse("data/personal.xml");            Element documentElement
> =doc.getDocumentElement();            
> if(documentElement.isSupported("psvi","1.0"))           {                     
>   ElementPSVI psviElem
> =(ElementPSVI)
> doc.getDocumentElement();                     XSModel model 
> =psviElem.getSchemaInformation();                 XSElementDeclaration decl
> =psviElem.getElementDeclaration();                    
> System.out.println(decl.getName());             }Without
> aseparate
> JAXP validator I am not sure, but I think you haveto
> use a validitionHandler,
> RegardsDickDeneerOp
> 13-sep-2009, om 12:03heeft
> ajay bhadauria het volgende geschreven:Hiall,Cananyone
> point out in the attached file what I am missingbecause
> of which I am not getting PSVI info. aftervalidation
> ?Thanks AB.---On
> Sat, 9/12/09, ajay bhadauria <abhadau...@yahoo.com>wrote: From:ajay
> bhadauria <abhadau...@yahoo.com>Subject:Missing
> PSVI after Validation.To:j-us...@xerces.apache.orgdate:Saturday,
> September 12, 2009, 4:21 PMHiall,Iam
> trying to get PSVI info after JAXP validation ofxmlinstancewith
> schema but I am not getting PSVI info. Itlookslike
> I am missing very basic thing.Iprovided
> DOMSource and DOMResult to the 
> JAXPvalidator(validate(DOMSource,DOMResult).Both
> these sources arecreatedfrom
> the DocumentBuilderFactory which
> hasattribute(org.apache.xerces.dom.PSVIDocumentImpl").Pleasefind
> the attached file if someone can pinpointwhatIam
> missing that will great help for me.ThanksAb
> 
> ---------------------------------------------------------------------Tounsubscribe,
> e-mail: j-users-unsubscr...@xerces.apache.orgforadditional
> commands, e-mail: j-users-h...@xerces.apache.org
> 
> 
> 
> ---------------------------------------------------------------------Tounsubscribe,
> e-mail: j-users-unsubscr...@xerces.apache.orgforadditional
> commands, e-mail: j-users-h...@xerces.apache.org
> 
>  
> 
> 
> 
> ---------------------------------------------------------------------To
> unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.orgfor
> additional commands, e-mail: j-users-h...@xerces.apache.org
>  
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to