You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by David Jencks <da...@yahoo.com> on 2005/07/01 06:39:53 UTC
Re: Do schema model objects include info from "any" elements in schema?
Yes! this works!
Many thanks,
david jencks
On Jun 29, 2005, at 10:24 AM, Lawrence Jones wrote:
> Hi David
>
> I had a quick look through the code. I haven't tried it, but this might
> work (where yourSchemaType is the SchemaType for ArrayOfstring):
>
> QName arrayTypeQName = new
> QName("http://schemas.xmlsoap.org/soap/encoding/", "arrayType");
>
> SchemaLocalAttribute sla =
> yourSchemaType.getAttributeModel().getAttribute(arrayTypeQName);
> if (sla != null)
> {
> SOAPArrayType wsdlArrayType = ((SchemaLocalAttributeImpl)sla).
> getWSDLArrayType();
> // do whatever you want to do here
> }
>
> Cheers,
>
> Lawrence
>
>> -----Original Message-----
>> From: David Jencks [mailto:david_jencks@yahoo.com]
>> Sent: Tuesday, June 28, 2005 2:28 PM
>> To: user@xmlbeans.apache.org
>> Subject: Do schema model objects include info from "any" elements in
>> schema?
>>
>> I'm using the xmlbeans schema model to extract information from
> schemas
>> in wsdls.
>>
>> Given a complex type like this:
>>
>> <complexType name="ArrayOfstring"
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>> <complexContent>
>> <restriction
> base="soapenc:Array">
>> <attribute
> ref="soapenc:arrayType"
>> wsdl:arrayType="xsd:string[]"/>
>> </restriction>
>> </complexContent>
>> </complexType>
>>
>> is it possible to extract the wsdl:arrayType attribute value of
>> xsd:string[] from any of the objects accessible from
>> org.apache.xmlbeans.SchemaType or related classes? If not, is there
>> some way to get back from a SchemaType object to an XmlObject from
>> which I could extract the information?
>>
>> many thanks
>> david jencks
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org