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:
To post a message you must log in.