Getting spec. data from xml-file

Ive got an xml-file, and I want to get a specific item from it knowing the row-id (or item-id) and column-id.

Heres a snippet of my xml-file:


<datapacket>
	<row	Svenska="jag"	Spanska="yo"	Gram="pro"/>
	<row	Svenska="du"	Spanska="tu"	Gram="pro"/>
</datapacket>

And heres the flash-code Im trying to use to get the correct row and column from the xml-file, using the variables row_id and col_id.


XMLvalue_dict = this.firstChild.childNodes[row_id].attributes[col_id];

I know the first half of that line works (atleast until “col_id”), but the end (the part with “col_id”) is somehow wrong. Any idea?