# XML problem

**URL:** <https://forum.kirupa.com/t/xml-problem/273258>\
**Category:** Uncategorized\
**Created:** [October 13, 2008, 6:35pm UTC](https://forum.kirupa.com/t/xml-problem/273258 "2008-10-13T18:35:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![heartglen](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@heartglen](https://forum.kirupa.com/u/heartglen)\
**Post date:** [October 13, 2008, 6:35pm UTC](https://forum.kirupa.com/t/xml-problem/273258/1 "2008-10-13T18:35:52Z")

</div>

Greetings.

I’ve an XML file that’s something like that ( can be editted from an asp file ) ;

```auto
 
<aspxml>
<login>
<username>admin</username>
<password>admin</password>
</login>
<contents>
<Content>
<ID>1</ID>
<title>test</title>
<details>test</details>
</Content>
</contents>
</aspxml>

```

I want Flash to read only and

> ****
>
> parts of the file, and using this code ;

```auto
 
function loadXML(loaded)
{
    if (loaded)
    {
        xmlNode = this.firstChild;
        title= [];
        details= [];
        total = xmlNode.childNodes.length;
        for (i = 0; i < total; i++)
        {
 
            title* = xmlNode.childNodes[0].childNodes[0].firstChild.nodeValue;
   details* = xmlNode.childNodes[0].childNodes[1].firstChild.nodeValue;
 
 
        }
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("file.xml");

```

But it reads login information, not the parts that i wanted. (I’ve to keep login information in xml file)  
How can i make Flash to read title and details only ?  
Thanks for helping.

( edit : something about “selectSingleNode” … but i still couldn’t solve it )
