Re: Why this type name shows like a garbage string?

2009-07-03 Thread govelogo
. its schema definition is as this, thanks a lot, David On Fri, Jul 3, 2009 at 12:45 PM, Michael Glavassevich wrote: > govelogo wrote on 07/03/2009 10:44:17 AM: > > > Hi there, > > > > > I am running the jaxp.TypeInfoWriter to parse a xml. For one > >

Why this type name shows like a garbage string?

2009-07-03 Thread govelogo
Hi there, I am running the jaxp.TypeInfoWriter to parse a xml. For one element, I got this result, startElement(name="{ http://crm.testschema.ca/xml/as/ServiceAndOfferMapping/v1-0}associatedWithServices ",type="{http://crm.testschema.ca/xml/as/ServiceAndOfferMapping/v1-0}* #AnonType_associat

Re: Name-value pairs in xml root tag

2009-07-02 Thread govelogo
ab > E-mail: mrgla...@ca.ibm.com > E-mail: mrgla...@apache.org > > govelogo wrote on 06/29/2009 01:39:29 PM: > > > > I used the sample handler in jaxp.TypeInfoWriter. Looks like it > > should be straight forward; I must have overlooked sth ... Can you > > just q

Re: Name-value pairs in xml root tag

2009-06-30 Thread govelogo
; IBM Toronto Lab > E-mail: mrgla...@ca.ibm.com > E-mail: mrgla...@apache.org > > govelogo wrote on 06/29/2009 01:39:29 PM: > > > > I used the sample handler in jaxp.TypeInfoWriter. Looks like it > > should be straight forward; I must have overlooked sth .

Re: Name-value pairs in xml root tag

2009-06-29 Thread govelogo
I used the sample handler in jaxp.TypeInfoWriter. Looks like it should be straight forward; I must have overlooked sth ... Can you just quickly point out which object I should use? thanks a lot, David On Mon, Jun 29, 2009 at 2:07 PM, wrote: > Those are all namespace declarations. If you register

Name-value pairs in xml root tag

2009-06-29 Thread govelogo
Hi there, Is it possible to use JAXP API to retrieve schema and prefix name-value pairs in the root element tag? for example, http://rules.bellaliant.icn/testing"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cbebi-v1-5="http://ossj.org

Re: Java representation of a complex schema type

2009-06-28 Thread govelogo
un 28, 2009 at 6:36 PM, Jeff Greif > edu> wrote: > > > From the ElementPSVI on the root of the document, you can get the > > > XSModel using getSchemaInformation. From there you can work your way > > > through the complex type definition to the XSParticle whose term is > &

Re: Java representation of a complex schema type

2009-06-28 Thread govelogo
or values (maxOccurs and > minOccurs) of an element declaration. > Perhaps somebody can correct me.. > > Just curious, why do you need to retrieve this information using an > API, as an end user facility? > > On Fri, Jun 26, 2009 at 10:59 PM, govelogo wrote: > > Hi

Java representation of a complex schema type

2009-06-26 Thread govelogo
Hi there, I am trying to identify a complex type defined in a similar manner as the following sketch of schema. I was hoping to be able to get the information from a XSElementDeclaration class retrieved from an ElementPSVI class. However, it seems I have not found the right method to do it.

Re: If an element is a simple or array element

2009-06-24 Thread govelogo
Hi Mukul and Michael, Just out of a quick try, it seems made a difference and should be able to get me what I want. thanks a lot, -david On Wed, Jun 24, 2009 at 12:30 AM, Mukul Gandhi wrote: > Hi David, > > On Wed, Jun 24, 2009 at 6:35 AM, govelogo wrote: > > But I got this e

Re: If an element is a simple or array element

2009-06-23 Thread govelogo
27;s OOB sample code. thanks a lot, -david On Tue, Jun 23, 2009 at 9:59 AM, Michael Glavassevich wrote: > govelogo wrote on 06/23/2009 07:26:55 AM: > > > > Do you mean I can cast "javax.xml.validation.ValidatorHandler" into > > a "org.apache.xerces.xs.PSVIProv

Re: If an element is a simple or array element

2009-06-23 Thread govelogo
2nd is I don't know how to apply "PSVIProvider" into your "jaxp.TypeInfoWriter" sample. Many thanks, David On Tue, Jun 23, 2009 at 8:40 AM, Mukul Gandhi wrote: > On Tue, Jun 23, 2009 at 4:56 PM, govelogo wrote: > > My ultimate goal is to be able to tell if a sch

Re: If an element is a simple or array element

2009-06-23 Thread govelogo
Hi Michael, My ultimate goal is to be able to tell if a schema type associated to an element is a simple type or an array type while parsing an xml. As to how to implement it, I am not sure. I was just trying. Do you mean I can cast "javax.xml.validation.ValidatorHandler" into a "org.apache.xerces