Hello,
I'm new to these boards (and to PHP & XML as well!), but have tried to search the past posting to make sure I'm not duplicating a question, so I apologize if I asked something that someone else already has.
I'm trying to pull some XML data from a file, but I only want to get a certain element's data.
The XML file I'm working with is here:
http://www.obsidiandragon.org/test/servers.xml
The PHP file I'm playing with is:
http://www.obsidiandragon.org/test/server.php
The XML elements for the parts I'm looking for is broken out in this structure:
-Server
...-Keep
......-Owner
...-Keep
......-Owner
...-Keep
......-Owner
-Server
...-Keep
......-Owner
...-Keep
......-Owner
...-Keep
......-Owner
What I'm trying to do is have it pull the Keeps, and then flag it a certain color if Owner = x. I can have it pull all the Keeps and Owners, but want to limit my data to only one Server. I'm completely blanking out on how to pull this off. If anyone has any pointers I would greatly appreciate it. Thanks! 🙂