users@jaxb.java.net

Re: obtaining content of a complexType with simple content

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Tue, 21 Oct 2008 22:55:10 +0100

It looks as though you call getContentType(), then supply a visitor
object to the visit() method, and the appropriate visit mehods will be
called on your visitor to represent the complex type components.


Meredith Gregory wrote:
> JAXBians,
>
> If i've got a complexType declaration of the form
>
> <xs:complexType name="mult">
> <xs:sequence>
> <xs:element name="m" type="xs:int"/>
> <xs:element name="n" type="xs:int"/>
> </xs:sequence>
> </xs:complexType>
>
> How do i use the XSOM classes to obtain the content?
>
> In my current experiments i can navigate to the XSComplexType instance
> that represents this declaration. However, i can't find a method that
> allows me to find out the contents of the type. Any help would be
> greatly appreciated.
>
> Best wishes,
>
> --greg
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com