Thanks, that clears things up a lot!
-Amit

From: Elena Litani <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: parsing and analysing schemas in 2.0.1
Date: Mon, 22 Mar 2004 17:23:08 -0500
MIME-Version: 1.0
Received: from mail.apache.org ([208.185.179.12]) by mc4-f18.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Mon, 22 Mar 2004 14:23:18 -0800
Received: (qmail 67332 invoked by uid 500); 22 Mar 2004 22:23:07 -0000
Received: (qmail 67321 invoked from network); 22 Mar 2004 22:23:07 -0000
Received: from unknown (HELO e6.ny.us.ibm.com) (32.97.182.106) by daedalus.apache.org with SMTP; 22 Mar 2004 22:23:07 -0000
Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.56.224.150])by e6.ny.us.ibm.com (8.12.10/8.12.2) with ESMTP id i2MMNC4i286024for <[EMAIL PROTECTED]>; Mon, 22 Mar 2004 17:23:13 -0500
Received: from d25ml06.torolab.ibm.com (d01av02.pok.ibm.com [9.56.224.216])by northrelay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i2MMNBiG117542for <[EMAIL PROTECTED]>; Mon, 22 Mar 2004 17:23:11 -0500
X-Message-Info: JGTYoYF78jFdOnaYFzr+DYyDRdAHfSS3
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
In-Reply-To: <[EMAIL PROTECTED]>
Sensitivity: X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <[EMAIL PROTECTED]>
X-MIMETrack: Serialize by Router on D25ML06/25/M/IBM(Release 6.0.2CF1|June 9, 2003) at 03/22/2004 17:23:11
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 22 Mar 2004 22:23:19.0665 (UTC) FILETIME=[478C9E10:01C4105C]






Hi Amit,

I believe in Xerces 2.0.1 we?ve only supported "lightweight" PSVI [1], for
example providing _only_ name/namespace for an element's type (as listed as
one of the PSVI options [2]).
We did not provide access to the XML Schema components.

Given that we also did not provide an option to load an XML Schema document
independently of an XML instance document.

If you want just to access the "lightweight" PSVI, you need to extend
Xerces AbstractSAX* or AbstractDOM* parsers and retrieve ElementPSVI and
AttributePSVI [3] in the startElement(..) method.

If you want access to the XML Schema components you must move to the higher
version of Xerces (preferably the latest) [4]

[1] http://www.w3.org/TR/xmlschema-1/#PSVI_contributions
[2] http://www.w3.org/TR/xmlschema-1/#e-type_definition
[3]
http://cvs.apache.org/viewcvs.cgi/xml-xerces/java/src/org/apache/xerces/xni/psvi/Attic/
[4] http://xml.apache.org/xerces2-j/faq-xs.html#faq-3

Thank you,
--
Elena Litani / IBM Toronto

"amit shetty" <[EMAIL PROTECTED]> wrote on 03/22/2004 04:24:25 PM:

> The closest I got was something like this,
>
> DOMImplementationAS domImpl =
> (DOMImplementationAS)DOMImplementationImpl.getDOMImplementation();
> DOMASBuilder parser = domImpl.createDOMASBuilder();
> ASModel asmodel =
> parser.parseASURI("http://test1/testxsd/BookStore1.xsd";);
> ASNamedObjectMap elems = asmodel.getElementDeclarations();
>
> but got "Not Supported" exceptions when I tried to access stuff on the
> ASModel. Looked at
> the source, and saw that none of that is implemented in 2.0.1....
> Any help?? Please? :-)
>
>
> >From: Paul Truda <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: parsing and analysing schemas in 2.0.1
> >Date: Mon, 22 Mar 2004 21:26:59 -0800
> >MIME-Version: 1.0
> >Received: from mail.apache.org ([208.185.179.12]) by mc2-f11.hotmail.com


> >with Microsoft SMTPSVC(5.0.2195.6824); Mon, 22 Mar 2004 02:19:31 -0800
> >Received: (qmail 26458 invoked by uid 500); 22 Mar 2004 10:19:14 -0000
> >Received: (qmail 26444 invoked from network); 22 Mar 2004 10:19:13 -0000
> >Received: from unknown (HELO mail4.tpgi.com.au) (203.12.160.61) by
> >daedalus.apache.org with SMTP; 22 Mar 2004 10:19:13 -0000
> >Received: from tpg.com.au (203-219-71-146-nsw.tpgi.com.au
> >[203.219.71.146])(authenticated bits=0)by mail4.tpgi.com.au
> >(8.12.10/8.12.10) with ESMTP id i2MAJP81015961for
> ><[EMAIL PROTECTED]>; Mon, 22 Mar 2004 21:19:25 +1100
> >X-Message-Info: JGTYoYF78jHKEV/7QRo+dA5sMcyLxiYB
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >Precedence: bulk
> >list-help: <mailto:[EMAIL PROTECTED]>
> >list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> >list-post: <mailto:[EMAIL PROTECTED]>
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >Message-ID: <[EMAIL PROTECTED]>
> >User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4)
> >Gecko/20030624 Netscape/7.1 (ax)
> >X-Accept-Language: en-us, en
> >References: <[EMAIL PROTECTED]>
> >In-Reply-To: <[EMAIL PROTECTED]>
> >X-TPG-Antivirus: Passed
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >Return-Path:
> >[EMAIL PROTECTED]
> >X-OriginalArrivalTime: 22 Mar 2004 10:19:31.0601 (UTC)
> >FILETIME=[2A67F010:01C40FF7]
> >
> >I'm glad that there is at least ONE person as confussed and frustrated
as I
> >am!! :)) Sorry I cannot help. It all seems such a lot of effort, just to


> >read a flat file doesn't it??
> >
> >Kind regards
> >Paul Truda
> >
> >amit shetty wrote:
> >
> >>Hey folks, I have tried a lot, searched a lot, and I am not able to
figure
> >>out how to do this. Would
> >>really appreciate it if you guys could help me on this.
> >>I need to load an XSD and go through its contents for my project. I am
> >>also restricted to version 2.0.1 of xerces. Any help on this would be
> >>really appreciated!
> >>Thanks in advance!
> >>Amit
> >>
> >>_________________________________________________________________
> >>Find a broadband plan that fits. Great local deals on high-speed
Internet
> >>access. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >--
> >From
> >Paul Truda
> >Bistra/CCCP/Trudata
> >please reply to [EMAIL PROTECTED]
> >phone 02 9403 1400
> >fax 02 9403 1447
> >web www.bistra.com.au
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> Free up your inbox with MSN Hotmail Extra Storage. Multiple plans
available.
> http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/
>
>
> ---------------------------------------------------------------------
> 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]


_________________________________________________________________
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! (Limited-time offer) http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/



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



Reply via email to