# Slow XML (wrong parser?)

**URL:** https://forum.kirupa.com/t/slow-xml-wrong-parser/190920
**Category:** Uncategorized
**Created:** [June 15, 2006, 5:47pm UTC](https://forum.kirupa.com/t/slow-xml-wrong-parser/190920 "2006-06-15T17:47:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blaatorx](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@blaatorx](https://forum.kirupa.com/u/blaatorx)
#### Post date: [June 15, 2006, 5:47pm UTC](https://forum.kirupa.com/t/slow-xml-wrong-parser/190920/1 "2006-06-15T17:47:29Z")

</div>

peepz,  
i’ve got a function that parses myXML. When i have a low number of xml lines it works fine, but if i have a lot (100) a get a big “hickup” and flash hangs for a few seconds. Somebody knows a solution?

```auto

_global.parsePagina = function(myXML)
{
 var intTeller = 0;
 myXMLfirstChild = myXML.firstChild;
 
 if(myXMLfirstChild.hasChildNodes())
 {
  for(i=0; i<myXMLfirstChild.childNodes.length; i++)
  {   
   //start methodeId and methodeTitel
   if (myXMLfirstChild.childNodes*.nodeName == 'methodeId')
   {
    _global.methodeId = myXMLfirstChild.childNodes*.firstChild.nodeValue
   }
   if (myXMLfirstChild.childNodes*.nodeName == 'methodeTitel')
   {
    _global.methodeTitel = myXMLfirstChild.childNodes*.firstChild.nodeValue
   }
   if (myXMLfirstChild.childNodes*.nodeName == 'methodeCover')
   {
    _global.methodeCover = myXMLfirstChild.childNodes*.firstChild.nodeValue
   }
   //end methodeId and methodeTitel
     
   if (myXMLfirstChild.childNodes*.childNodes.length > 1)
   {
    for (a=0; a < myXMLfirstChild.childNodes*.childNodes.length; a++)
    {
     arrPaginas[a] = new Array()
     
     for (b=0; b<myXMLfirstChild.childNodes*.firstChild.childNodes.length; b++)
     {
      arrPaginas[a]**= myXMLfirstChild.childNodes*.childNodes[a].childNodes**.firstChild.nodeValue;
     }
    }  
   }
   
  }
  //ready parsing start functions
  duplicatePages()
  
  //load cover
  loadCover(methodeCover)
  
  //create nakijken
  _root.mcNakijken.mcContent.contentMain.createNakijkenClips()
  
 else
 {
  trace('XML loaded, no records');
 }
}

```
