# Getting spec. data from xml-file

**URL:** https://forum.kirupa.com/t/getting-spec-data-from-xml-file/134302
**Category:** Uncategorized
**Created:** [January 17, 2005, 6:13pm UTC](https://forum.kirupa.com/t/getting-spec-data-from-xml-file/134302 "2005-01-17T18:13:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MrFlashALot](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@MrFlashALot](https://forum.kirupa.com/u/MrFlashALot)
#### Post date: [January 17, 2005, 6:13pm UTC](https://forum.kirupa.com/t/getting-spec-data-from-xml-file/134302/1 "2005-01-17T18:13:18Z")

</div>

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:

```auto

<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.

```auto

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?
