-
January 27th, 2009, 04:21 AM
#1
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?
-
January 27th, 2009, 04:43 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|