How to Create a Tablular Structure of a XML File Using XSL.
Sometimes we need to display the data that are present in a xml file in a tabular format. Following code explan how to display a tabular format of the XML file by applying XSL stylesheet.
XML-FILE
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="showtableformat.xsl"?>
<StudentInfo>
<Students>
<FirstName>Monali</FirstName>
<LastName> Nayak </LastName>
</Students>
<Students>
<FirstName>Sarita</FirstName>
<LastName> Dash </LastName>
</Students>
<Students>
<FirstName>Asrita</FirstName>
<LastName> Pandit </LastName>
</Students>
</StudentInfo>