Ajay,

You can also see here http://www.nabble.com/Missing-PSVI-after- Validation.-to25413412.html to see the thread.

Regards
Dick
Op 14-sep-2009, om 2:38 heeft ajay bhadauria het volgende geschreven:

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 <[email protected]> wrote:

From: Dick Deneer <[email protected]>
Subject: Re: Missing PSVI after Validation.
To: [email protected]
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 <[email protected]>
wrote:
 From:
Dick Deneer <[email protected]>Subject:
Re: Missing PSVI after Validation.To:
[email protected]:
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 <[email protected]>wrote: From:ajay
bhadauria <[email protected]>Subject:Missing
PSVI after Validation.To:[email protected]: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: [email protected]
commands, e-mail: [email protected]



--------------------------------------------------------------------- Tounsubscribe,
e-mail: [email protected]
commands, e-mail: [email protected]





--------------------------------------------------------------------- To
unsubscribe, e-mail: [email protected]
additional commands, e-mail: [email protected]






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to