Skip to main content

developerWorks >  XML  >  Forums  >  Working XML forum  >  developerWorks

XML Best Practice Question?    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
jrekso

Posts: 1
Registered: Nov 06, 2009 02:50:33 PM
XML Best Practice Question?
Posted: Nov 06, 2009 02:56:29 PM
 
Click to report abuse...   Click to reply to this thread Reply
If we want to define recursive elements, which one is the recommended one, or best practice:

1. <lotNumber>
<otherLotInfoDetails>
<otherLotInfoDetail>
<attribDesc/>
<attribValue/>
</otherLotInfoDetail>
<otherLotInfoDetail>
<attribDesc/>
<attribValue/>
</otherLotInfoDetail>
</otherLotInfoDetails>

2. <lotNumber>
<otherLotInfoDetail>
<attribDesc/>
<attribValue/>
</otherLotInfoDetail>
<otherLotInfoDetail>
<attribDesc/>
<attribValue/>
</otherLotInfoDetail>

Is it better to have a wrapper element to group the recursive elements? What's the benefit in doing it like that?

Please share your opinions.

Thank you very much!

 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums