4.3 ww.dll API Reference : General use : How ww.dll reacts to quantity tags
 
How ww.dll reacts to quantity tags
 
ww.dll reacts to quantity tags in the following manner. <qty></qty> tags outside of the <itemn> </itemn> tags apply to all items in the call unless there are <qty></qty> inside of any of the <itemn> </itemn> tags, in which case the <qty></qty> tags inside of the <itemn></itemn> tags override the <qty></qty> tags outside of the <itemn></itemn> tags.
Example:
<func>getitemexpanded</func><qty>10</qty><item1><department>TEST</department><category>TEST</category><item>DPTEST1</item><hasmod>TEST MODIFIERS DPMOD1
</hasmod></item1><item2><qty>6</qty><department>IMAX</department><category>MOVIES</category><item>STORM0730</item><hasmod>IMAX MODIFIERS ADULT</hasmod></item2><item3><qty>12</qty><department>TEST</department><category>TEST
</category><item>CRTGSTWMOD</item><hasmod>TEST MODIFIERS TESTMOD01 </hasmod></item3><item4><department>IMAX</department><category>MOVIES</category><item>OCEAN0730</item><hasmod>IMAX MODIFIERS CHILD </hasmod></item4><calcprice>1</calcprice><datetime></datetime>

The above uses qty 10 for item1 and item4, qty 6 for item2 and qty 12 for item3.