I've never tried mixed content before, but today I was experimenting
with something like

    <element name="in-list">
        <complexType mixed="true">
            <sequence>
                <element name="in" minOccurs="0" maxOccurs="unbounded">
                    <complexType>
                        <attribute name="name" type="string"/>
                    </complexType>
                </element>
            </sequence>
        </complexType>
    </element>

(Hopefully I got that right ;)

where the input might look something like:

<in-list>
    This is a list of in objects like <in name="dog"/>
    or <in name="cat"/>
</in-list>

I want to be able to treat the content as a list of strings
interleaved with <in> objects, something that could be created
with a sequence of statements like:

content[0]="This is a list of in objects like ";
content[1]=new In ("dog");
...

I get the impression (although I'm not positive yet) that the castor
result will instead give me all the text run together in a String, and
a separate list of In objects.  Hopefully I'm just missing something!

What I'm looking for is a hint on whether it works the way I think it
does, and if so, if there is a legitimate way to change the
unmarshalling so that it does what I want to do.  If this is indeed
possible, I'm happy to take on the coding, but could use a few
pointers on where to start.

Thanks!

        Gary

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to