[PHP - XML - Parsing] Displaying only top 5 lines

There is a tutorial on kirupa that shows you how to get the contents of an XML document and display it. Basically i want this but i want it to only show the top five lines / any lines that i choose say line 1, 2, 3, 6 and 7. You know something like that.
I’m kindof a noob at this so explanations would be great but if not then i’m sure i’ll figure it out eventually.
Thanks :slight_smile:

p.s. Hope i’m not being too demanding :wink: