Guest Ali Khan Posted April 11, 2007 Share Posted April 11, 2007 I need to convert the following XML . Can anyone provide me XSLT for this on how to achieve this task?Thanks in advance...<mmm> <folder id="1" parent_id="0"/> <folder id="2" parent_id="1"/> <folder id="3" parent_id="1"/> <folder id="4" parent_id="3"/> <folder id="5" parent_id="3"/> <folder id="6" parent_id="1"/> <folder id="7" parent_id="0"/> <folder id="8" parent_id="0"/> <folder id="9" parent_id="8"/> <folder id="10" parent_id="9"/> <folder id="11" parent_id="10"/> <folder id="12" parent_id="10"/> <folder id="13" parent_id="0"/></mmm>into tree type structure like this<mmm> <folder id="1" parent_id="0"> <folder id="2" parent_id="1"/> <folder id="3" parent_id="1"> <folder id="4" parent_id="3"/> <folder id="5" parent_id="3"/> </folder> <folder id="6" parent_id="1"/> </folder> <folder id="7" parent_id="0"/> <folder id="8" parent_id="0"/> <folder id="9" parent_id="8"> <folder id="10" parent_id="9"> <folder id="11" parent_id="10"> <folder id="12" parent_id="10"/> </folder> </folder> </folder> <folder id="13" parent_id="0"/></mmm> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now