Displaying unparsed HTML in a WebBrowser control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Artie

    Displaying unparsed HTML in a WebBrowser control

    Hi,

    I'm using a WebBrowser control to display xml formatted to html using
    a stylesheet.

    In certain scenarios, if I detect that the xml is invalid, I'd need to
    display the raw invalid xml in the WebBrowser control. I've wrapped
    the raw invalid xml in some html tags, and it displays, however, all
    the xml tags have been parsed out - it just displays the values.

    My question is, how can I get the WebBrowser to display the actual
    xml, including all the tags?

    Example:

    I want to display "<Forenam>J ohn</Forename><Surna me>Smith</Surname>"
    in the WebBrowser
    (deliberate mistake 'Forenam')

    rather than
    "JohnSmith"


    Any help much appreciated

    Cheers

    Attie
Working...