CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Location
    Kathmandu, Nepal
    Posts
    84

    Unhappy transform xml files in asp.net

    Hi, I have the following xml file:

    <?xml version="1.0" encoding="utf-8" ?>
    - <Document xmlns="http://ws.staywell.com">
    <Content>
    <body xmlns="http://ws.staywell.com/markup">
    <h1>Diabetic Retinopathy: Using the Amsler Grid</h1>
    <p>
    You may have or be at risk of <b>diabetic retinopathy.</b>
    This condition occurs when diabetes damages blood vessels in the rear of the eye. Diabetic retinopathy can lead to vision loss or blindness. You can greatly reduce your risk of vision loss by managing your health and keeping track of changes in your vision. Check your eyesight regularly using the Amsler grid below.
    </p>
    <h3> <img imageid="139115" alt="" height="350" width="350" title="some title" /> </h3>
    </body>
    </Content>
    </document>

    How can i use xslt in asp.net to transform the contents between <body> ....</body> and show them in web page?

    Can anybody please help me?

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: transform xml files in asp.net

    Take a look a this

    http://www.w3schools.com/XML/xml_xsl.asp

    it's an example of xml file using xslt.

    Click 'View the XML file', 'the XSLT style sheet', and 'View the result' links here to see the input, stylesheet and the result.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured