<?xml version="1.0" encoding="windows-1252"?>
<node id="994469" title="Re^2: Find highest value" created="2012-09-19 10:34:23" updated="2012-09-19 10:34:23">
<type id="11">
note</type>
<author id="993098">
linseyr</author>
<data>
<field name="doctext">
Thank you for your answer. 
But the last columns are classes and totals of classes, so I only want to find the maximum of the totals of classes. 
I should select only subset of the @values and put in array then, but this doesn't work:

&lt;code&gt;
push(@totals, values[1], values[3], values[5], values[7]);
&lt;/code&gt;

Is there a way to do this? I want to find the class for which the total of class is the highest, and print the class name..
</field>
<field name="root_node">
994458</field>
<field name="parent_node">
994460</field>
</data>
</node>
