# Please, anyone can help me to parse this xml sample

**URL:** <https://forum.kirupa.com/t/please-anyone-can-help-me-to-parse-this-xml-sample/299457>\
**Category:** flash\
**Created:** [November 5, 2009, 10:53am UTC](https://forum.kirupa.com/t/please-anyone-can-help-me-to-parse-this-xml-sample/299457 "2009-11-05T10:53:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![log](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@log](https://forum.kirupa.com/u/log)\
**Post date:** [November 5, 2009, 10:53am UTC](https://forum.kirupa.com/t/please-anyone-can-help-me-to-parse-this-xml-sample/299457/1 "2009-11-05T10:53:07Z")

</div>

![](http://img21.imageshack.us/img21/3897/snap1op.jpg)

Please, anyone can help me to parse this xml sample. I want get the nodevalue summary and description in tag OBJECT?  
I need actionscript code.

This is my Code

var accessories\_array;  
function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
accessories\_array = new Array();  
for (var i = 0; i\<xmlNode.childNodes.length; i++) {  
nodename = xmlNode.childNodes\*.nodeName;  
if (nodename == “object”) {  
titles = xmlNode.childNodes\*.attributes.title;  
img\_small = xmlNode.childNodes\*.attributes.img\_small;  
img\_big = xmlNode.childNodes\*.attributes.img\_big;  
[COLOR=Red]\*\* summary = “what???”;  
description = “what???”;**[/COLOR]  
accessories\_array.push({title:title, img\_small:img\_small, img\_big:img\_big});  
}  
}  
} else {  
trace("** Warning: XML file not loaded!");  
}  
}  
function setupXML(xmlfile) {  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(xmlfile);  
}  
setupXML(“accessories.xml”);

I’ve trye with

summary = xmlNode.childNodes\*.firstChild.childNodes[0].nodeValue;

and

description = xmlNode.childNodes\*.firstChild.childNodes[1].nodeValue;

I get summary But i dont get description. It return like undefined.
