Are there any easier ways to use simple XML as I need to create a flash application with simple xml.

What I am using now is

<td><center><?php if($xml === false)
{
	echo "There was an error opening the xml file.";
	exit;
}
else
{
	foreach($xml as $pilot_first_name)
	{
		echo $pilot_first_name->fn . "<br>";
	}
}
?></center>
</td>

And I have that for like 5 columns.
Is there a way to loop across?

Any Help would be awesome. Thanks in advance!

It depends, but generally, you can put it in a for loop:

for($i = 0; $i < 5; $i++) {?>
<td>bla, bla</td>
<?php }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.