# How to make pages from a xml list

**URL:** https://forum.kirupa.com/t/how-to-make-pages-from-a-xml-list/184145
**Category:** Uncategorized
**Created:** [April 2, 2006, 5:56pm UTC](https://forum.kirupa.com/t/how-to-make-pages-from-a-xml-list/184145 "2006-04-02T17:56:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tristessa](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tristessa](https://forum.kirupa.com/u/tristessa)
#### Post date: [April 2, 2006, 5:56pm UTC](https://forum.kirupa.com/t/how-to-make-pages-from-a-xml-list/184145/1 "2006-04-02T17:56:13Z")

</div>

Hi , i started a thread but i formulated my question bad.

here goes;

so i load a xml list and attachmovies with the for (i=0… code

say my xml is 26 nodes long, i only want to show per 10 items  
then a next button / previous button appears to scroll through it  
i know how to do that but.

how do i split it up? to when i press next the xml loads the next starting from the last one, not a number cuz i load various “sortings” like that

i use xpath.

```auto

path = "/jobs/item[@format='website']";
        format_array = mx.xpath.XPathAPI.selectNodeList(this.firstChild, path);
        counter.text = format_array.length;
        var i:Number;
        for (i=0; i<format_array.length; i++) {
               var sub = attachMovie("items_big", "knopsub"+i, i);

            sub .nameTXT.text = format_array*.attributes.name;
            sub .workTXT.text = format_array*.firstChild.nodeValue;
            sub .formatTXT.text = format_array*.attributes.format;

```

offcourse there is more code but i don’t ought it to be usefull to place it

so to resume  
can / is anyone willing to help me

i am looking for a way to split the list to 10  
show up prev & next buttons (i know that) and when pressed  
they scroll through the xml to load the corresponding next or previous items

probably this is covered tons of times, yet i don’t know the proper english to search on it.

best regards & thnx
