# XML: prev or next 10 items

**URL:** https://forum.kirupa.com/t/xml-prev-or-next-10-items/79389
**Category:** flash
**Created:** [February 13, 2005, 7:42pm UTC](https://forum.kirupa.com/t/xml-prev-or-next-10-items/79389 "2005-02-13T19:42:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Konijn](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@Konijn](https://forum.kirupa.com/u/Konijn)
#### Post date: [February 13, 2005, 7:42pm UTC](https://forum.kirupa.com/t/xml-prev-or-next-10-items/79389/1 "2005-02-13T19:42:55Z")

</div>

Hey,

I created a guestbook with an external xml file.  
You can enter items into the xml file.

But the problem now is that al the entries are showed.  
Now I want to have that I can browse between the files.

That I can see the next or previous 10 entries.

This is the code I used.

```auto
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
	if (success) {
		menuItem = this.firstChild.childNodes;
		for (var i = 0; i<menuItem.length; i++) {
			item = content_mc.attachMovie("itemClip", "itemClip"+i, i);
			item._x = 0;
			item._y = 101*i;
			item.useHandCursor = true;
			// Info in sublist
			item.myBericht.text = menuItem*.attributes.bericht;
			item.myEmail.text = menuItem*.attributes.email;
			item.myGender.text = menuItem*.attributes.geslacht + " :: mail";
			item.myData.text = menuItem*.attributes.datum + " :: " + menuItem*.attributes.naam + " ( " + menuItem*.attributes.plaats + " ) " + "wrote:";
			
		}
	}
};
menuXml.load("gastenboek.xml");

```

Who can help me with this?  
I dont think it’s hard to find but I just cant manage it.

Thx in advance
