In this article we will know how to Display xml file using xml control.
For that we have to add an Xml control, xml file and XSLTFile.
First add a xml file to the webform and write the below code to that file and name that file as
Student.xml- <?xml version="1.0" encoding="utf-8" ?>
- <studentdetails>
- <student>
- <sid>s001</sid>
- <sname>Raj</sname>
- <smarks>100</smarks>
- <saddress>Delhi</saddress>
- </student>
- <student>
- <sid>s002</sid>
- <sname>Ravi</sname>
- <smarks>90</smarks>
- <saddress>Mumbai</saddress>
- </student>
- <student>
- <sid>s003</sid>
- <sname>Rahul</sname>
- <smarks>80</smarks>
- <saddress>Pune</saddress>
- </student>
- </studentdetails>
Student.Xslt


Join the conversation! Your thoughts help the community grow.