Re: [jibx-users] Tryng to bind xsd:choice -- JiBX requires each choice to be present

2007-04-18 Thread Dennis Sosnoski
On thinking this over, I realized it's more complex than we'd discussed. You're assuming that the choice has minOccurs='1', but it's equally valid for a choice to have minOccurs='0' (or maxOccurs 1, but that equates to a collection). I suppose what I should really do is see if the binding

Re: [jibx-users] Tryng to bind xsd:choice -- JiBX requires each choice to be present

2007-04-17 Thread Dennis Sosnoski
Hi Steven, I don't see anything obviously wrong with what you're doing. Here's a sample from the JiBX build test cases: mapping name=myelement class=simple.MyClass3 structure ordered=false choice=true value name=a field=a usage=optional/ value name=b field=b usage=optional/

Re: [jibx-users] Tryng to bind xsd:choice -- JiBX requires each choice to be present

2007-04-17 Thread Steven E. Harris
Dennis Sosnoski [EMAIL PROTECTED] writes: Here's a sample from the JiBX build test cases: mapping name=myelement class=simple.MyClass3 structure ordered=false choice=true value name=a field=a usage=optional/ value name=b field=b usage=optional/ value name=c field=c

Re: [jibx-users] Tryng to bind xsd:choice -- JiBX requires each choice to be present

2007-04-17 Thread Dennis Sosnoski
Steven E. Harris wrote: Dennis Sosnoski [EMAIL PROTECTED] writes: Here's a sample from the JiBX build test cases: mapping name=myelement class=simple.MyClass3 structure ordered=false choice=true value name=a field=a usage=optional/ value name=b field=b usage=optional/

[jibx-users] Tryng to bind xsd:choice -- JiBX requires each choice to be present

2007-04-03 Thread Steven E. Harris
I'm struggling trying to figure out the right way to write a binding for an xsd:choice structure. Consider the following schema fragment: xs:simpleType name=Tmac-48 xs:restriction base=xs:string xs:pattern value=[\p{Nd}A-F]{2}(-[\p{Nd}A-F]{2}){5}/ /xs:restriction