I want to create tree view structure from XML data. Can any one please help me how do I achieve this using XSLT.
XML File:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="filename.xsl"?>
<node text="Path1">
<node text="Folder1">
<node text="File1.java" />
<node text="File2.java" />
<node text="Folder2">
<node text="File3.java" />
<node text="File4.java" />
</node>
</node>
<node text="Folder3" > </node>
</node>
Output:
Path1
|-Folder1
|-File1.java
|-File2.java
|-Folder2
|-File3.java
|-File4.java
|-Folder3
|-File5.java