Hi,
I have the following STAX job to iterate a dictionary and print out the keys in
the dictionary.
<script>
testsWin = {'Harmony':0,'DeclinePlus':0, 'Harmony1':0, 'RTA':0}
</script>
<defaultcall function="main" />
<function name="main" scope="local">
<sequence>
<iterate var="test" in="testsWin.keys()">
<log message="1">'test=%s' % test</log>
</iterate>
</sequence>
</function>
The log message shows in this order: Harmony1, DeclinePlus, RTA, Harmony.
Is there a way to make the print out(message) has the same key order as that in
variable testsWin?
Thanks,
Cindy
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users