Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (file_exists('SpellDatabaseXML.xml'))
- {
- $xml = simplexml_load_file('SpellDatabaseXML.xml');
- foreach($xml->children() as $spell)
- {
- echo "ID: ".$book->id."<br />";
- echo "Name: ".$book->name." <br />";
- echo "Life: ".$book->life." <br />";
- echo "Damage: ".$book->damage." <br />";
- echo "Speed: ".$book->speed." <br />";
- echo "Cast Time: ".$book->castTime." <br />";
- echo "Spell Type: ".$book->spellType." <br />";
- echo "<hr/>";
- }
- }
- else
- {
- echo 'Could not find file.';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement