<element> <data>foo</data> </element> <element> <data>bar</data> </element> <element> <data>monkey</data> </element> <element> <data>fish</data> </element>
You can get around this XML limitation by explicitly adding an order/index attribute to your ordered elements. For example:
<element n="1"> <data>foo</data> </element> <element n="2"> <data>bar</data> </element> <element n="3"> <data>monkey</data> </element> <element n="4"> <data>fish</data> </element>
In order to work with data like this, you'll need to pre-populate the "n" attribute before you generate the XML and you'll need to post-process the "n" attribute after you parse the XML. Here's an example, that demonstrates this technique:
Example VI
Element_Ordering.vi (45.09K)
Number of downloads: 200
Front Panel

Block Diagram



Back to top








