# Working with large XML files

**URL:** https://forum.kirupa.com/t/working-with-large-xml-files/203332
**Category:** flash
**Created:** [October 10, 2006, 8:23am UTC](https://forum.kirupa.com/t/working-with-large-xml-files/203332 "2006-10-10T08:23:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jayme65](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jayme65](https://forum.kirupa.com/u/Jayme65)
#### Post date: [October 10, 2006, 8:23am UTC](https://forum.kirupa.com/t/working-with-large-xml-files/203332/1 "2006-10-10T08:23:02Z")

</div>

I have to work with arather large XML file (about 25Mo).  
From that XML file (which I CAN’T touch in any manner), I actually need only a couple attributes in each nodes.  
Parsing the whole XML to load the data will (of course) lead to a “A script in this movie is causing Flash Player to run slowly…”  
Ideally, I would like to browse the XML, only parsing data needed  
(like you would do in a database…without having to load the whole database before 😉  
But I think this is not possible? Isn’t it?  
So, I was wondering: why shouldn’t I treat it like a text file, reading it and taking only the info needed from the file?  
The problem is that I don’t exactly see how to do 😉  
Following is a copy paste of the first node only…how would you do to read this text and put in an array:[COLOR=“DarkOrange”]name[/COLOR], [COLOR=“darkorange”]cloneof[/COLOR] and [COLOR=“darkorange”]description[/COLOR]?  
Detecting the node name, checking that it exists(i.e 'cloneof" isn’t present in each node), and filling the array with the value  
Thanks very, very much by advance!!!

```auto

<game [COLOR="DarkOrange"]name[/COLOR]=[COLOR="Red"]"puckmana"[/COLOR] sourcefile="pacman.c" [COLOR="darkorange"]cloneof[/COLOR]=[COLOR="red"]"puckman"[/COLOR] romof="puckman">
  <[COLOR="darkorange"]description[/COLOR]>[COLOR="red"]PuckMan (Japan set 2)[/COLOR]</description>
  <year>1980</year>
  <manufacturer>Namco</manufacturer>
  <driver status="good" emulation="good" color="good" sound="good" graphic="good" palettesize="32"/>
 </game>

```
