Question regarding XML parsing using PHP (intermediate) tutorial

I’m basically brand new to PHP and XML. I saw this tutorial, http://www.kirupa.com/web/xml_php_parse_intermediate.htm, on this site and it was perfect for what I was needing on my website. I have a little news column that appears on basically every page in my site with each “story” having a date and text. I was looking for an easy way to change the content on all pages at one time instead of having to edit each page separately so I implemented the code from that tutorial. So far I’ve only put it on one page and it seems to be working perfectly. My question is, what’s the best way to put this in a page? Right now I have my XML file, the PHP script in another file and then I put the For loop into my code for my index.php page with some changes to the HTML in the For loop to fit my page. In that index.php page I just loaded the script by using

<?php require_once 'news.php'; ?>

. Is that the best way to load the script? Will I run across any problems doing it that way or is there a better way? Thanks for any help.