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

  • Home
  • SEARCH
  • 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 8133371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:35:03+00:00 2026-06-06T09:35:03+00:00

Our WinForms based application takes documentation files that were generated by Visual Studio (Xml

  • 0

Our WinForms based application takes documentation files that were generated by Visual Studio (Xml documentation), performs some XSLT transformation and displays the result in a WebBrowser control inside our form.

Problem is, We cannot seem to get line breaks to be displayed, for example for tags in the xml documentation.

For example:

        <member name="T:Genesys.AgentLoginData">
            <summary>
            This is some test summary <br />
            New line here
            </summary>
        </member>

When used with the XSL transformation, the summary text will be truncated into a single line.

For simplification, the transformation does this for selecting the summary text:

<xsl:template match="member" >
<xsl:value-of select="summary" disable-output-escaping="yes" />
</xsl:template>

How can we properly get new lines to be displayed in the WebBrowser control inside our application?

EDIT: Adding the contents of”View Source” from the WebBrowser control.
What i’m after is a new line after “This is a method”, and so on.
The browser simply displays that in a single line.

<?xml version="1.0" encoding="utf-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Action Help</title><style type="text/css">
          p  {text-indent:200px;}
          li {text-indent:180px;}
          h1 {color:navy;}
          h2 {color:blueviolet}
          h4 {color:navy;}
        </style></head><body><H2 xmlns="">AgentLogin</H2><H1 xmlns=""></H1><h3 xmlns="">
            This is a method 
            And its parameter 
            Check this out
            name</P></body></html>
  • 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. Editorial Team
    Editorial Team
    2026-06-06T09:35:05+00:00Added an answer on June 6, 2026 at 9:35 am

    You’re probably looking for xml:space="preserve" directive. See http://msdn.microsoft.com/en-us/library/aa468566.aspx for a decent article on how to handle XSL and whitespace on the .net stack.

    Although I just noticed that you’re displaying the resulting transform in a web browser control, which may mean that your problems actually with the produced HTML. Try viewing source on what you’re displaying in the control and add that to your question.

    Looking at the updated comments, and making some guesses, I think your problem is that you’re using xsl:value-of, which just gets the text of the node, instead of xsl:copy-of, which would get the text of the node, along with the <br/> elements. Try replacing this:

    <xsl:value-of select="summary" disable-output-escaping="yes" />
    

    with

    <xsl:copy-of select="summary/node()" />
    

    Your other option would be to escape the <br/> so that it come through as text instead of a child node, and leave disable-output-escaping on.

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

Sidebar

Related Questions

I have a simple little application that performs some analysis of all our corporate
In our C# WinForms application, we generate PDF files and launch Adobe Reader (or
Our.NET application is based on Winforms. The application controls different instruments and most of
Our company is building a Winforms application that needs a map control to help
I'm developing a WinForms c# 3.0 application. Our designer created quite a lot of
We have .NET WinForms based application and it is expected to work on at
We have a WinForms application that includes controls such as picture boxes that are
I have a WinForms based application. It's compiling and running perfectly. Problem is, ever
Our winforms application supports a custom controller using the manufacturer's SDK, but there's no
Our main application has both a asp.net and winforms component. There is a class

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.