Note that there are some explanatory texts on larger screens.

plurals
  1. POtrying to read out xml but getting the html
    primarykey
    data
    text
    <p>if you check this link: <a href="http://armory.wow-europe.com/guild-info.xml?r=Aegwynn&amp;n=Quite+Tight" rel="nofollow">http://armory.wow-europe.com/guild-info.xml?r=Aegwynn&amp;n=Quite+Tight</a></p> <p>its a usuall html in the visual way.. but if you right click and open the source code there is a xml i need for my solution.</p> <p>Im using the XmlReader .. but he reads out the html.. how can i solve this?</p> <p>this is my code part:</p> <pre><code> string url = "http://armory.wow-europe.com/guild-info.xml?r=" + realm + "&amp;n=" + editedGuildName; // XML Resolver XmlUrlResolver resolver = new XmlUrlResolver(); resolver = null; // XML reader XmlReaderSettings settings = new XmlReaderSettings(); settings.DtdProcessing = DtdProcessing.Ignore; XmlReader reader = XmlReader.Create(url, settings); while (reader.Read()) { guildDataList.Add(reader.ReadString()); } </code></pre> <p>my list is getting filled with the html visual of the page</p> <p>Edit:</p> <p>the first few parts of the xml:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;?xml-stylesheet type="text/xsl" href="/_layout/guild/roster.xsl"?&gt;&lt;page globalSearch="1" lang="de_de" requestUrl="/guild-info.xml"&gt; &lt;tabInfo subTab="guildRoster" tab="guild" tabGroup="guild" tabUrl="r=Aegwynn&amp;amp;gn=quite+tight"/&gt; &lt;guildInfo&gt; &lt;guildHeader battleGroup="Blutdurst" count="76" faction="1" name="quite tight" nameUrl="quite+tight" realm="Aegwynn" realmUrl="Aegwynn" url="r=Aegwynn&amp;amp;gn=quite+tight"&gt; &lt;emblem emblemBackground="39" emblemBorderColor="14" emblemBorderStyle="5" emblemIconColor="14" emblemIconStyle="145"/&gt; &lt;/guildHeader&gt; </code></pre> <p>I saw some guys working with the xml i need to work with by using PHP with the following part of code:</p> <pre><code>$url = "http://eu.wowarmory.com/character-sheet.xml?r=".urlencode($realm)."&amp;n=".urlencode($char); ini_set("user_agent","Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4"); ini_set("default_socket_timeout", 10); $contextOptions = array("http" =&gt; array ("header" =&gt; "Cookie: cookieLangId=de_de\r\n")); $context = stream_context_create($contextOptions); @$file = file_get_contents( $url, false, $context); if( empty($file)) { return false; exit; } # neues DOM $dom = new DOMDocument('1.0'); $dom-&gt;loadXML($file); </code></pre> <p>it seems to work fine for them.. im not good in php .. so i dont really know what they are doing different.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload