I am trying to map an element inside a choice which is inside a sequence.
I don't know how to make the mapping file.
Here is my XSD.
<xs:element name="document">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="noteinfo" minOccurs="0"/>
</xs:choice>
<xs:choice>
<xs:element ref="item" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:sequence>
</xs:element>
On this Schema, the source generator creates a class Document which content
a DocumentChoice (which contain noteinfo) and a Documentchoice2 (which
contains items)
In my XML I have the document :
<document xmlns="http://www.lotus.com/dxl" version="1.01" form="Test">
<noteinfo>
...
</noteinfo>
<item name="Test1">
<text>Sample text</text>
</item>
</document>
So how do I tell in the mapping file to store the <item> inside the choice2
?
----------------------------------------------------------------
This document should only be read by those persons to whom it is
addressed and is not intended to be relied upon by any person
without subsequent written confirmation of its contents. If you
have received this e-mail message in error, please destroy it
and delete it from your computer.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and/or publication of this E-mail
message is strictly prohibited.
----------------------------------------------------------------
Pictet & Cie, Banquiers Tel. +41 (0)58 323 2323
29, boulevard Georges-Favon Fax +41 (0)58 323 2324
CH-1204 GENEVE http://www.pictet.com/
----------------------------------------------------------------
* NEW PHONE NUMBERS AS OF 1/1/2002! *
* NOUVEAUX NUMEROS DES LE 1/1/2002! *
----------------------------------------------------------------
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev