# XML sendAndLoad Problem

**URL:** <https://forum.kirupa.com/t/xml-sendandload-problem/173320>\
**Category:** flash\
**Created:** [December 23, 2005, 12:29pm UTC](https://forum.kirupa.com/t/xml-sendandload-problem/173320 "2005-12-23T12:29:12Z")\
**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:** [December 23, 2005, 12:29pm UTC](https://forum.kirupa.com/t/xml-sendandload-problem/173320/1 "2005-12-23T12:29:12Z")

</div>

peepz,

i have this script to get data from XML:

```auto

if(categoryID == "")
{
 _global.categoryID = 1;
}

var photoXML = new XML();
photoXML.categoryID = categoryID;
photoXML.ignoreWhite = true;

photoXML.sendAndLoad("includes/photo_gallery_photos.php", photoXML, "POST");

photoXML.onLoad = function (success) {
 if (success) {
  
  parseFile(photoXML);
  showArray();
 }
}

```

in the function “showArray()” im tracing ap.length and it returns “0” but if change the rule in the code above to:

```auto

photoXML.load("includes/photo_gallery_photos.php?categoryID=1");

```

i get all my XML data back, what im doing wrong?

hope somebody can help!

thnx!
