Topic
  • 1 reply
  • Latest Post - ‏2012-12-06T17:03:13Z by SystemAdmin
SystemAdmin
SystemAdmin
6184 Posts

Pinned topic Mapping Choice Groups?

‏2012-12-06T15:15:39Z |
I have a Choice group that appears in the output card, an XML schema, as:

choice (s)
Object1
Object2
Object3

I need to output multiple instances of each object type. It seems to me the only thing I can do is modify the schema to allow for multiple instances of each object and then index the choice group. Thus, my output card would then look like this:

choice [1]
Object1 (s)
Object2 (s)
Object3 (s)
choice [2]
Object1 (s)
Object2 (s)
Object3 (s)
choice [3]
Object1 (s)
Object2 (s)
Object3 (s)
choice (s)

I hesitate to do this as the schema I'm working with is an ACORD standard (specifically TXLife which references XMLife) but I see no other way. Am I missing something? Thanks.
Updated on 2012-12-06T17:03:13Z at 2012-12-06T17:03:13Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6184 Posts

    Re: Mapping Choice Groups?

    ‏2012-12-06T17:03:13Z  
    Using Altova XMLspy, I created a schema subset. It resulted in a schema as I described above with each object defined as maxOccurs="Unbounded". So that is the way I will go.