Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 33349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:54:24+00:00 2026-05-10T13:54:24+00:00

I would like to display details of an xml error log to a user

  • 0

I would like to display details of an xml error log to a user in a winforms application and am looking for the best control to do the job.

The error data contains all of the sever variables at the time that the error occurred. These have been formatted into an XML document that looks something to the effect of:

<error>     <serverVariables>         <item>             <value>         </item>     </serverVariables>     <queryString>         <item name=''>             <value string=''>          </item>     </queryString>       </error> 

I would like to read this data from the string that it is stored in and display it to the user via a windows form in a useful way. XML Notepad does a cool job of formatting xml, but is not really was I am looking for since I would prefer to rather display item details in a Name : string format.

Any suggestions or am I looking and a custom implementation?

[EDIT] A section of the data that needs to be displayed:

<?xml version='1.0' encoding='utf-8'?> <error host='WIN12' type='System.Web.HttpException' message='The file '' does not exist.' source='System.Web' detail='System.Web.HttpException: The file '' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at' time='2008-09-01T07:13:08.9171250+02:00' statusCode='404'>   <serverVariables>     <item name='ALL_HTTP'>       <value string='HTTP_CONNECTION:close HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ' />     </item>     <item name='AUTH_TYPE'>       <value string='' />     </item>     <item name='HTTPS'>       <value string='off' />     </item>     <item name='HTTPS_KEYSIZE'>       <value string='' />     </item>     <item name='HTTP_USER_AGENT'>       <value string='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)' />     </item>   </serverVariables>   <queryString>     <item name='tid'>       <value string='196' />     </item>   </queryString> </error> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:54:25+00:00Added an answer on May 10, 2026 at 1:54 pm

    You can transform your XML data using XSLT
    Another option is to use XLinq.
    If you want concrete code example provide us with sample data

    EDIT: here is a sample XSLT transform for your XML file:

    <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>     <xsl:output method='text'/>     <xsl:template match='//error/serverVariables'>       <xsl:text>Server variables:       </xsl:text>       <xsl:for-each select='item'>         <xsl:value-of select='@name'/>:<xsl:value-of select='value/@string'/>         <xsl:text>         </xsl:text>       </xsl:for-each>     </xsl:template>     <xsl:template match='//error/queryString'>       <xsl:text>Query string items:       </xsl:text>       <xsl:for-each select='item'>         <xsl:value-of select='@name'/>:<xsl:value-of select='value/@string'/>         <xsl:text>         </xsl:text>       </xsl:for-each>     </xsl:template> </xsl:stylesheet> 

    You can apply this transform using XslCompiledTransform class. It should give output like this:

    Server variables:
    ALL_HTTP:HTTP_CONNECTION:close HTTP_USER_AGENT:Mozilla/4.0 (compatible MSIE 6.0; Windows NT 5.1; SV1)
    AUTH_TYPE:
    HTTPS:off
    HTTPS_KEYSIZE:
    HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;S )

    Query string items:
    tid:196

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to display the first and last name of the authenticated user.
I would like to display the details of the first model in Backbone by
I have integrated Spring Security in my application , and would like to display
I have a View that displays the Customer Details. I would like to display
We would like to display order details as table in an email ​<table> <thead>
I would like to display a gallery of photos and how many times each
I would like to display a loading bar before the entire page is loaded.
I would like to display only posts that are members of BOTH category 33,
I would like to display No profile found message, if the UserId doesn't exist
I would like to display other we pages in my mobile webapp, but some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.