Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Table as an Attribute of Nested Table?

Status
Not open for further replies.

zook9549

MIS
Oct 1, 2001
1
US
Here is my current situation: I am attempting to create an object that is returned from a stored procedure and translated to XML from an oracle struct in java. In order to have the XML structured properlyu, it requires an array within an array. So below for a sample of the XML.

I decided a nested table was the best approach since it is unbounded. The problem I run into is that it doesn't appear I can have a nested table with an attribute of an object that contains a nested table as an attribute. This correlates to result_sets and entries.

I have seen documentation verifying that you can't nest varrays. Can anybodty provide some guidance on the best approach to simulating the structure needed? Any help would be greatly appreciated!

<report>
<start_date/>
<end_date/>
<result_sets>
<result_set>
<partner>
<id/>
<name/>
</partner>
<entries>
<entry>
<date/>
<volume/>
</entry>
</entries>
</result_set>
</result_sets>
</report>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top