Click to See Complete Forum and Search --> : transform xml files in asp.net


Nava
January 27th, 2009, 03:21 AM
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?

dannystommen
January 27th, 2009, 03:43 AM
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.