Deal with many elements with same name

Asked by Alexey Ustinnikov

I have to deal with request, containing several elements with same names, for example:
<orders>

<order>
...
</order>
<order>
...
</order>

</orders>

I know I can do this like:

from models.order import Order
class Orders(LadonType):
orders = [Order]

But in this case it is necessary to construct xml like that (using soap11 interface):

<orders>
<item>
 <order>
 ...
 </order>
</item>
<item>
 <order>
 ...
 </order>
</item>

</orders>
But I don't want that <item> elements, how can I do that without them?

Question information

Language:
English Edit question
Status:
Expired
For:
ladon Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.