Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can transform your XML data using <a href="http://www.xml.com/pub/a/2002/08/14/dotnetxslt.html" rel="nofollow noreferrer">XSLT</a><br> Another option is to use XLinq.<br> If you want concrete code example provide us with sample data</p> <p><strong>EDIT</strong>: here is a sample XSLT transform for your XML file: </p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output method="text"/&gt; &lt;xsl:template match="//error/serverVariables"&gt; &lt;xsl:text&gt;Server variables: &lt;/xsl:text&gt; &lt;xsl:for-each select="item"&gt; &lt;xsl:value-of select="@name"/&gt;:&lt;xsl:value-of select="value/@string"/&gt; &lt;xsl:text&gt; &lt;/xsl:text&gt; &lt;/xsl:for-each&gt; &lt;/xsl:template&gt; &lt;xsl:template match="//error/queryString"&gt; &lt;xsl:text&gt;Query string items: &lt;/xsl:text&gt; &lt;xsl:for-each select="item"&gt; &lt;xsl:value-of select="@name"/&gt;:&lt;xsl:value-of select="value/@string"/&gt; &lt;xsl:text&gt; &lt;/xsl:text&gt; &lt;/xsl:for-each&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>You can apply this transform using <a href="http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.aspx" rel="nofollow noreferrer">XslCompiledTransform</a> class. It should give output like this:</p> <blockquote> <p>Server variables:<br> ALL_HTTP:HTTP_CONNECTION:close HTTP_USER_AGENT:Mozilla/4.0 (compatible MSIE 6.0; Windows NT 5.1; SV1)<br> AUTH_TYPE:<br> HTTPS:off<br> HTTPS_KEYSIZE:<br> HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;S ) </p> <p>Query string items:<br> tid:196 </p> </blockquote>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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