Jump to content

XML Parsing from external URL


Ms_Kristina

Recommended Posts

I am working on a website for a World of Warcraft guild and my guild master wants the roster information to be pulled from WoW Armory so the roster will remain up to date.

 

My plan is to get the name, url, and rank of the characters from WoW Armories guild listing and put it into a small database table. With that information, I will then be able to go to each WoW Armory character sheet for each character and get the rest of the information and drop that into a table.

 

Once the tables have been populated for the first time I will need to verify against the WoW Armory XML guild list to first get char name and url.

- If name isn't there it needs to add it from the table

- If name is there it needs to update it from the table

- If name is not there it needs to delete it from the table.

 

Once I can get this script working I will have to look at turning all this into a Drupal module but first things first.

 

As, right now my table is blank, and needs to be populated by the info for the first time.

 

I am at the first step which is just getting the basic char name, rank and url from WoW Amories guild listing. You can get the URL by checking the wowarmory website, and searching for the guild Royalties of Horde on the Borean Tundra.

 

Here is the code below:

 

<?php

// Connect to the MySQL database
   $conn = mysql_connect("localhost", "root", "mywire21");

// Select the database
$db = mysql_select_db("royalities");

// Desired address
$url = " URL TO GUILD LISTING HERE";

// Retrieve the URL contents
$page = file_get_contents($url);
echo "getting url contents";

// Parse the returned XML file
$xml = new SimpleXMLElement($page);
echo "parse xml file";

echo $xml->guildKey->guildInfo->guild->members->character . "<br />";

foreach($xml->guildKey->guildInfo->guild->members->character() as $character)
  {
  echo $character['name'] . "<br />";
  echo $character['url'] . "<br />";
  echo $character['rank'] . "<br />";


  $InsertQuery = "INSERT INTO roster (name, url, rank) VALUES ('$character[name]', '$character[url]', '$character[rank]')";
  echo "insert query $InsertQuery<p>";
  }
?>

 

And the post below is the errors I get when I run it.

 

Any thoughts on why I am getting the hundreds of errors? o.O

Link to comment
https://forums.phpfreaks.com/topic/152752-xml-parsing-from-external-url/
Share on other sites

getting url contents
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 27: parser error : StartTag: invalid element name in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: if(parseFloat($.browser.version) <= 1.9) addStylesheet('/css/browser/firefox2 in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 57: parser error : xmlParseEntityRef: no name in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: if(region != "KR" && region != "TW"){ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2053: parser error : Opening and ending tag mismatch: a line 2052 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2055: parser error : Opening and ending tag mismatch: a line 2052 and td in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </td><td> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2057: parser error : Opening and ending tag mismatch: img line 2057 and a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: vel.value, 0, completeArray);"><img border="0" class="p" id="raceIconMale2"></a> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2057: parser error : Opening and ending tag mismatch: img line 2057 and a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: el.value, 1, completeArray);"><img border="0" class="p" id="raceIconFemale2"></a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2058: parser error : Opening and ending tag mismatch: a line 2057 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2060: parser error : Opening and ending tag mismatch: a line 2057 and td in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </td><td> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2062: parser error : Opening and ending tag mismatch: img line 2062 and a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: vel.value, 0, completeArray);"><img border="0" class="p" id="raceIconMale3"></a> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2062: parser error : Opening and ending tag mismatch: img line 2062 and a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: el.value, 1, completeArray);"><img border="0" class="p" id="raceIconFemale3"></a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2063: parser error : Opening and ending tag mismatch: a line 2062 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2065: parser error : Opening and ending tag mismatch: a line 2062 and td in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </td><td> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2067: parser error : Opening and ending tag mismatch: img line 2067 and a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: vel.value, 0, completeArray);"><img border="0" class="p" id="raceIconMale4"></a> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2067: parser error : Opening and ending tag mismatch: img line 2067 and a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: el.value, 1, completeArray);"><img border="0" class="p" id="raceIconFemale4"></a in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2068: parser error : Opening and ending tag mismatch: a line 2067 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2070: parser error : Opening and ending tag mismatch: a line 2067 and td in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </td> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2071: parser error : Opening and ending tag mismatch: div line 2066 and tr in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </tr> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2072: parser error : Opening and ending tag mismatch: td line 2065 and table in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </table> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2074: parser error : Opening and ending tag mismatch: td line 2060 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2719: parser error : Entity 'nbsp' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <span class="tooltipGuild">Total Characters in Guild:</span><strong> 30</st in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2722: parser error : Entity 'nbsp' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <span class="tooltipGuild">Characters Matching Criteria:</span> <strong id= in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2726: parser error : Entity 'nbsp' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </span> <strong id="printNum80"></strong> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2730: parser error : Entity 'nbsp' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </span> <b id="printPercent80"></b>%</p> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2736: parser error : Opening and ending tag mismatch: td line 2055 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2738: parser error : Opening and ending tag mismatch: td line 2050 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2744: parser error : StartTag: invalid element name in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: for (r=0; r < thisRaceArray.length; r++) { in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2752: parser error : StartTag: invalid element name in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: for (t=0; t < classStringArray.length; t++) { in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2770: parser error : Opening and ending tag mismatch: td line 2045 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2771: parser error : Opening and ending tag mismatch: tr line 2044 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2772: parser error : Opening and ending tag mismatch: table line 1944 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2779: parser error : Opening and ending tag mismatch: form line 1871 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2833: parser error : Entity 'rsquo' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: class="faq-off" href="javascript:faqSwitch(13);" id="faqlink13">Why aren’ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2864: parser error : Entity 'rsquo' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: aracter who is a member of the guild in question, and that your character’ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2867: parser error : Entity 'rsquo' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ank Contents page displays a grid depicting the contents of the character’ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2879: parser error : Entity 'ldquo' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <li>The “Slot” column in the results section refers to the coordinat in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2879: parser error : Entity 'rdquo' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <li>The “Slot” column in the results section refers to the coordinat in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 2883: parser error : Entity 'ldquo' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: e;ol (AL)</a><span>|</span><a class="langLink" href="?locale=es_es">Españ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 3024: parser error : Entity 'ccedil' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: e;ol (EU)</a><span>|</span><a class="langLink" href="?locale=fr_fr">Franç in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 3027: parser error : Opening and ending tag mismatch: br line 3025 and div in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </div> in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 3034: parser error : Entity 'copy' not defined in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in D:\server\xampp\htdocs\dev\roster_simple.php:17 Stack trace: #0 D:\server\xampp\htdocs\dev\roster_simple.php(17): SimpleXMLElement->__construct('<!DOCTYPE html ...') #1 {main} thrown in D:\server\xampp\htdocs\dev\roster_simple.php on line 17

That's funny. 'Cause when I view the source it indeed shows a (small) XML file. But obviously there's more going on on that page. Actual source (cutted to fit):

 

<html><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><link href="/favicon.ico" rel="shortcut icon"><title>The World of Warcraft Armory</title><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="The World of Warcraft Armory is a vast searchable database of information for World of Warcraft - taken straight from the real servers. It is the most comprehensive and up-to-date database on the characters, arena teams, guilds, items, and faction rewards of World of Warcraft in existence." name="description"><style media="screen, projection" type="text/css">
	@import "/css/master.css";
	@import "/css/en_us/language.css";
	@import "/shared/global/menu/topnav/topnav.css";

		@import "/css/int.css";

	@import "/css/_region/us/region.css";
</style><script src="/shared/global/third-party/jquery/jquery.js" type="text/javascript"></script><script src="/shared/global/third-party/jquery/datefunctions.js" type="text/javascript"></script><script src="/shared/global/third-party/jquery/jquery.datepicker.js" type="text/javascript"></script><script src="/shared/global/third-party/jquery/jquery.tablesorter.min.js" type="text/javascript"></script><script src="/shared/global/third-party/jquery/jquery.tablesorter.pager.js" type="text/javascript"></script><script src="/shared/global/third-party/jquery/jquery.bgiframe.min.js" type="text/javascript"></script><script src="/shared/global/third-party/sarissa/0.9.9.3/sarissa.js" type="text/javascript"></script><script src="/js/common.js" type="text/javascript"></script><script src="/js/tooltip_compact.js" type="text/javascript"></script><script src="/js/armory.js" type="text/javascript"></script><script src="/js/character/bookmark.js" type="text/javascript"></script><script type="text/javascript">



	//browser detection

	if($.browser.msie){
		if($.browser.version == "7.0")		addStylesheet('/css/browser/ie7.css');
		if($.browser.version == "6.0")		addStylesheet('/css/browser/ie.css');
	}else if($.browser.mozilla){
		if(parseFloat($.browser.version) <= 1.9)	addStylesheet('/css/browser/firefox2.css');
	}else if($.browser.opera)				addStylesheet('/css/browser/opera.css');
	else if($.browser.safari)				addStylesheet('/css/browser/safari.css');


	//set global login var
	var isLoggedIn = ("" != '');
	var bookmarkToolTip = "You can bookmark up to 30 character profiles.";

	var isHomepage = !("true");


	var globalSearch = "1";
	var theLang = "en_us";
	var searchQueryValue = '';
	var region 			 = "US"; //in language.xsl DO NOT REMOVE

	var regionUrl = {
		armory: 	"http://www.wowarmory.com/",
		forums: 	"http://forums.worldofwarcraft.com/",
		wow: 		"http://www.worldofwarcraft.com/"
	}		

	if (getcookie2("armory.cookieSearch"))
		searchQueryValue = getcookie2("armory.cookieSearch");
	else
		searchQueryValue = 'Search the Armory';



	if(region != "KR" && region != "TW"){
		searchQueryValue = unescape(searchQueryValue);
	}
	setcookie("cookieLangId", theLang); // fixed a bug (when the page used a function 'document(url)')

	/*  */

	$(document).ready(function() {
		//initialize the armory!
		initializeArmory();
	});

	/* */

</script><link href="/css/browser/firefox2.css" media="screen, projection" type="text/css" rel="stylesheet"></head><div FirebugVersion="1.3.3" style="display: none;" id="_firebugConsole"></div><body style="background-position: 50% 26px;"><form method="get" id="historyStorageForm"><textarea name="historyStorageField" id="historyStorageField"></textarea></form><script src="/js/dhtmlHistory.js" type="text/javascript"></script><script src="/js/en_us/strings.js" type="text/javascript"></script><script type="text/javascript">global_nav_lang = 'en_us'</script><div class="tn_armory" id="shared_topnav"><div class="topnav"><div class="tn_interior"><a href="http://www.worldofwarcraft.com/">WorldofWarcraft.com</a><img src="/shared/global/menu/topnav/topnav_div.gif"><a href="http://www.wowarmory.com/">The Armory</a><img src="/shared/global/menu/topnav/topnav_div.gif"><a href="http://forums.worldofwarcraft.com/">Forums</a></div></div><div class="tn_push"></div></div><div class="outer-container"><div class="inner-container"><div class="int-top"><div class="logo"><a href="/"><span>The World of Warcraft Armory</span></a></div><div class="adbox"><div class="ad-container"><div id="ad_728x90"><iframe style="display: none;" marginwidth="0" marginheight="0" src="http://cgm.adbureau.net/hserver/acc_random=40210299/SITE=WOW.ARMORY.COM/AREA=NETWORK/AAMSZ=728X90/pageid=99865890" scrolling="no" width="728" frameborder="0" height="90"><script type="text/javacript" src="http://cgm.adbureau.net/jnserver/acc_random=40210299/SITE=WOW.ARMORY.COM/AREA=NETWORK/AAMSZ=728X90/pageid=99865890"></script></iframe></div></div></div></div><div class="int"><div class="search-bar"><div class="module"><div class="search-container"><div class="search-module"><em class="search-icon"></em><form onsubmit="javascript: return menuCheckLength(document.formSearch);" method="get" action="/search.xml" name="formSearch"><input maxlength="72" size="16" value="" name="searchQuery" id="armorySearch" type="text"><a onclick="javascript: return menuCheckLength(document.formSearch);" class="submit" href="javascript:void(0);"><span>Search</span></a><div id="errorSearchType"></div><div id="formSearch_errorSearchLength" onmouseover="javascript: this.innerHTML = '';"></div><input value="all" name="searchType" type="hidden"></form><div class="navigation">

        <ul id="nav">
				<li>
        <a href="/item-search.xml">Items</a>
           	<ul style="display: none;">
						<li class="fly">
            <span>Item Collections</span>
							<ul style="display: none;">
<!-- Raids -->

								<li class="fly">
                <a href="/dungeons.xml">Dungeons & Raids</a>
									<ul style="display: none;">
										<li>
                    <a href="/dungeons.xml">Wrath of the Lich King</a>
                  </li>
										<li>

                    <a href="/dungeons1.xml">The Burning Crusade</a>
                  </li>
										<li>
                    <a href="/dungeons0.xml">Classic</a>
                  </li>
									</ul>
								</li>
<!-- Factions -->

								<li class="fly">
                <a href="/factions.xml">Faction Rewards</a>
									<ul style="display: none;">
										<li>
                    <a href="/factions.xml">Wrath of the Lich King</a>
                  </li>
										<li>
                    <a href="/factions1.xml">The Burning Crusade</a>

                  </li>
										<li>
                    <a href="/factions0.xml">Classic</a>
                  </li>
									</ul>
								</li>
								<li>
                <a href="/pvprewards.xml">PvP Rewards</a>

              </li>
<!-- Arena Rewards -->
								<li class="fly">
                <span>Arena Rewards</span>
									<ul style="display: none;">
										<li>
                    <a href="/search.xml?fl%5Bsource%5D=pvpAlliance&fl%5Bpvp%5D=arena5&fl%5Btype%5D=all&searchType=items">Season 5 Awards</a>
                  </li>

										<li>
                    <a href="/search.xml?fl%5Bsource%5D=pvpAlliance&fl%5Bpvp%5D=arena4&fl%5Btype%5D=all&searchType=items">Season 4 Awards</a>
                  </li>
										<li>
                    <a href="/search.xml?fl%5Bsource%5D=pvpAlliance&fl%5Bpvp%5D=arena3&fl%5Btype%5D=all&searchType=items">Season 3 Awards</a>
                  </li>
									</ul>
								</li>

<!-- Tokens -->
								<li class="fly">
                <span>Tokens</span>
									<ul style="display: none;">
										<li>
                    <a href="/search.xml?fl%5Bsource%5D=dungeon&fl%5Bdungeon%5D=badgeofjustice&fl%5Btype%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Badges of Justice</a>
                  </li>
										<li>

                    <a href="/search.xml?fl%5Bsource%5D=dungeon&fl%5Bdungeon%5D=emblemofheroism&fl%5Btype%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Emblems of Heroism</a>
                  </li>
										<li>
                    <a href="/search.xml?fl%5Bsource%5D=dungeon&fl%5Bdungeon%5D=emblemofvalor&fl%5Btype%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Emblems of Valor</a>
                  </li>
									</ul>
								</li>
								<li>

                <a href="/search.xml?fl%5Bsource%5D=all&fl%5Btype%5D=all&fl%5BusbleBy%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5Brrt%5D=hm&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Heirloom Items</a>
              </li>
							</ul>
						</li>
<!-- Items -->
						<li class="fly">
            <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=all&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Weapons</a>
							<ul style="display: none;">

								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=1haxe&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">One-Handed Axes</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=2haxe&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Two-Handed Axes</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=bow&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Bows</a>

              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=gun&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Guns</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=1hmce&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">One-Handed Maces</a>
              </li>
								<li>

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=2hmce&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Two-Handed Maces</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=plarm&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Polearms</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=1hswd&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">One-Handed Swords</a>

              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=2hswd&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Two-Handed Swords</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=stv&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Staves</a>
              </li>
								<li>

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=fwpn&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Fist Weapons</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=misc&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Miscellaneous</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=dggr&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Daggers</a>

              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=thrwn&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Thrown</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=xbow&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Crossbows</a>
              </li>
								<li>

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=wnd&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Wands</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=weapons&fl%5BsubTp%5D=fshpl&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Fishing Pole</a>
              </li>
							</ul>
						</li>
<!-- Armor -->

						<li class="fly">
            <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=all&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Armor</a>
							<ul style="display: none;">
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=cloth&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Cloth</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=leather&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Leather</a>

              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=mail&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Mail</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=plate&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Plate</a>
              </li>
								<li>

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=shield&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Shield</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=idol&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Idol</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=libram&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Libram</a>

              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=totem&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Totem</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=sigil&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Sigil</a>
              </li>
								<li>

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=armor&fl%5BsubTp%5D=miscellaneous&fl%5Bslot%5D=all&fl%5Brrt%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Miscellaneous</a>
              </li>
							</ul>
						</li>
<!-- Gems -->
						<li class="fly">
            <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=all&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Gems</a>
							<ul style="display: none;">

								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=blue&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Blue</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=red&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Red</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=yellow&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Yellow</a>

              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=meta&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Meta</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=green&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Green</a>
              </li>
								<li>

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=orange&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Orange</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=purple&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Purple</a>
              </li>
								<li>
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=gems&fl%5BsubTp%5D=prismatic&fl%5Brrt%5D=all&fl%5BusbleBy%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none">Prismatic</a>

              </li>
							</ul>
						</li>
<!-- Glyphs -->
						<li class="fly">
            <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&searchType=items">Glyphs</a>
							<ul style="display: none;">
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=6&searchType=items">Death Knight</a>

									<ul style="display: none;">
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=6&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=6&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>

								</li>
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=11&searchType=items">Druid</a>
									<ul style="display: none;">
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=11&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>

                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=11&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>
								</li>
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=3&searchType=items">Hunter</a>
									<ul style="display: none;">
										<li>

                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=3&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=3&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>
								</li>
								<li class="fly">

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=8&searchType=items">Mage</a>
									<ul style="display: none;">
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=8&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=8&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>

                  </li>
									</ul>
								</li>
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=2&searchType=items">Paladin</a>
									<ul style="display: none;">
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=2&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>

                  </li>
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=2&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>
								</li>
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=5&searchType=items">Priest</a>

									<ul style="display: none;">
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=5&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=5&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>

								</li>
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=4&searchType=items">Rogue</a>
									<ul style="display: none;">
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=4&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>

                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=4&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>
								</li>
								<li class="fly">
                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=7&searchType=items">Shaman</a>
									<ul style="display: none;">
										<li>

                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=7&fl%5BglyphTp%5D=MAJOR&searchType=items">Major Glyphs</a>
                  </li>
										<li>
                    <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=7&fl%5BglyphTp%5D=MINOR&searchType=items">Minor Glyphs</a>
                  </li>
									</ul>
								</li>
								<li class="fly">

                <a href="/search.xml?searchQuery=&fl%5Bsource%5D=all&fl%5Btype%5D=glyphs&fl%5BusbleBy%5D=9&searchType=items">Warlock</a>


...

 

That's more or less what you're storing in $page.

It's because the XML file is including all the HTML via the stylesheet tag:

 

<?xml-stylesheet type="text/xsl" href="/layout/guild-info.xsl"?>

 

/layout/guild-info.xsl:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>

<xsl:include href="includes.xsl"/>
<xsl:include href="errorPage.xsl"/>

<xsl:include href="guild-info-data.xsl"/>
<xsl:include href="guild-tabs.xsl"/>
<xsl:include href = "guild-header.xsl" />

<xsl:template match="page/guildInfo">

<xsl:choose>
	<xsl:when test = "guild/members">

		<span style="display:none;">start</span><!--needed to fix IE bug that ignores script includes-->
		<script type="text/javascript" src="/js/mini-search-ajax.js"></script>
		<script type="text/javascript" src="/js/guild-roster-ajax.js"></script>
		<script type="text/javascript" src="/js/guild-stats-ajax.js"></script>

		<div id="dataElement">
	    <xsl:apply-templates />
		</div>
	</xsl:when>

	<xsl:otherwise>
		<xsl:call-template name="errorPage" />
	</xsl:otherwise>
</xsl:choose>

</xsl:template>


</xsl:stylesheet>

 

And I'm not sure how you get the XML only.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.