[Xml-compile] Elements with maxOccurs="100"
Mark Overmeer
mark at overmeer.net
Mon Nov 24 12:39:59 GMT 2008
* Zbigniew Lukasiak (zzbbyy at gmail.com) [081124 12:27]:
> On Mon, Nov 24, 2008 at 1:20 PM, Mark Overmeer <mark at overmeer.net> wrote:
> > I tried this:
>
> Try a complex type instead of just int (for the e3 element). I can
> also recreate my test - if you have problem with getting this error
> message.
No new errors found:
In Schema:
<complexType name="t4">
<sequence>
<element name="e4a" type="int"/>
<element name="e4b" type="int"/>
</sequence>
</complexType>
<element name="test4">
<complexType>
<sequence>
<element name="e4" type="me:t4" minOccurs="0" maxOccurs="12"
nillable="true" />
</sequence>
</complexType>
</element>
In Perl:
+{ e4 => [ 'NIL',
{ 'e4b' => 51, 'e4a' => 50 },
'NIL',
{ 'e4b' => 53, 'e4a' => 52 },
{ 'e4b' => 55, 'e4a' => 54 },
'NIL' ]
};
In XML:
<test4 xmlns:xsi="$xsi">
<e4 xsi:nil="true"/>
<e4>
<e4a>50</e4a>
<e4b>51</e4b>
</e4>
<e4 xsi:nil="true"/>
<e4>
<e4a>52</e4a>
<e4b>53</e4b>
</e4>
<e4>
<e4a>54</e4a>
<e4b>55</e4b>
</e4>
<e4 xsi:nil="true"/>
</test4>
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list