Hi,
 
how can I represent hierarchies in XSD, so that Castor can unmarshal them? Consider, for example, a directory tree.
I would write something like:
 
<xsd:element name="hierarchy">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element ref="hierarchy" ...>
        </xsd:sequence...>
    </...>
</...>
 
Here the source generator hangs in an endless loop. If I write
<...>
    <...>
        <...>
            <xsd:element type="hierarchy">
        </...>
    ...
 
It generates some source source code, but also an error.
I'm not (yet) an expert with XSDs so there may be a solution on that.
 
Second, can JDO handle hierarchies? We often have table rows that are linked to their parents via a parent ID. Is that supported?
 
Clemens

Reply via email to