Hi list,

I've got a simple question. 
How can I get the complex type of the following element?

<xsd:element name="socks">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element name="sock" minOccurs="0" 
maxOccurs="unbounded">
                                        <xsd:complexType>
                                                <xsd:sequence>
                                                        <xsd:element 
name="name" type="xsd:string"/>
                                                        <xsd:element 
name="image" type="imageType"/>
                                                        <xsd:element 
name="color" type="colorType"/>
                                                        <xsd:element 
name="price" type="money"/>
                                                        <xsd:element 
name="smell" type="smellType"/>
                                                </xsd:sequence>
                                                <xsd:attribute name="number" 
type="xsd:string" use="required"/>
                                        </xsd:complexType>
                                </xsd:element>
                        </xsd:sequence>
                </xsd:complexType>
</xsd:element>

I'm able to get the top-level element "socks" and the hasChildren() tells me 
it has children but I dont know how to get the children of this element. 
I'm using Castor XML.
Is there anybody out there who can help me?

Any pointers are much appreciated.

kind regards,

Andreas

Attachment: pgpgI0dHrwme9.pgp
Description: PGP signature

Reply via email to