# Pulling 1 node and all its childnodes out of an xml sheet using Actionscript

**URL:** <https://forum.kirupa.com/t/pulling-1-node-and-all-its-childnodes-out-of-an-xml-sheet-using-actionscript/213556>\
**Category:** Uncategorized\
**Created:** [January 20, 2007, 9:28pm UTC](https://forum.kirupa.com/t/pulling-1-node-and-all-its-childnodes-out-of-an-xml-sheet-using-actionscript/213556 "2007-01-20T21:28:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eskalation\_dk](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@eskalation\_dk](https://forum.kirupa.com/u/eskalation_dk)\
**Post date:** [January 20, 2007, 9:28pm UTC](https://forum.kirupa.com/t/pulling-1-node-and-all-its-childnodes-out-of-an-xml-sheet-using-actionscript/213556/1 "2007-01-20T21:28:21Z")

</div>

Hi, i need your help! I have an xml database where i need to pull out 1 node and all childnodes with a specific ID number, but i cant seem to figure out how to do so.

I have tried reading the xml tutorial on this site, specifically the xml search one, but that didnt help.

the xml i have is build this way:

```auto

<bilbase>
  <bil id="57">
    <grunddata>
      <mærke>Audi</mærke>
      <model>A6</model>
      <udstyrsvariation/>
      <årgang>1999</årgang>
      <kørtekm>90.000</kørtekm>
      <motor>1.8</motor>
      <hestekræfter/>
    </grunddata>
    <yderligt>
      <døre>5</døre>
      <ryger>Nej</ryger>
      <ekstraudstyr>ABS, Alufælge, Automatgear, Cd-afspiller, Centrallås, Elruder, Elruder foran, Radio, Startspærre</ekstraudstyr>
      <pris>190.000</pris>
      <note/>
    </yderligt>
</bil>

. . .

</bilbase>

```

what i have figured out is how to load the whole xml sheet into flash, i just need to pull out the id that lies in " parent.childNodes\*.attributes.id = “” "… and then get the info that corresponds to that car (bil = car in danish)…

i have the id in a var called id…

cant someone please help me =)

thanks in advance, Brian

**Nevermind, i figured it out =)**
