# XPathAPI problem

**URL:** <https://forum.kirupa.com/t/xpathapi-problem/213702>\
**Category:** flash\
**Created:** [January 22, 2007, 5:46pm UTC](https://forum.kirupa.com/t/xpathapi-problem/213702 "2007-01-22T17:46:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mesiah](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@mesiah](https://forum.kirupa.com/u/mesiah)\
**Post date:** [January 22, 2007, 5:46pm UTC](https://forum.kirupa.com/t/xpathapi-problem/213702/1 "2007-01-22T17:46:59Z")

</div>

hi guys, i’m having the following problem:

i have an xml like this and when using xpath i cant retrieve the “nombre”'s attribute

```auto

<?xml version="1.0" encoding="UTF-8"?>
<solem>
	<seccion nombre="equipo"></seccion>
	<seccion nombre="productos"></seccion>
	<seccion nombre="clientes"></seccion>
	<seccion nombre="soluciones"></seccion>
</solem>

```

actionscript used:

```auto

import mx.xpath.XPathAPI;
var menu:Array = XPathAPI.selectNodeList(this.firstChild, "/solem/*");

for (var i = 0; i<menu.length; i++) {
trace(XPathAPI.selectSingleNode(this.firstChild, "/solem/seccion").attributes.nombre);
}

```

it traces me

equipo  
equipo  
equipo  
equipo

any hints about this??

thanks
