I have an xml structure similar to the following:
<xml>
<object1>
<id/>
<name/>
</object1>
<object2>
<id>
<name>
</object2>
<object3>
<id/>
<name/>
</object3>
</xml>
I created a schema from this where only 1 of the 3 objects can exist using xs:choice. From this schema, I used the xsd utility to create my xml serializable class.
My question is this. Each object (1 - 3) needs to be loaded based on the results of a query to my database. What is the preferred method for loading these objects?
Thanks.
Start Free Trial