[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Tree from directory listing

Subject: Tree from directory listing
From: Thomas Zöchling <thomas.zoechling@xxxxxx>
Date: Fri, 10 Dec 2004 18:03:34 +0100
directory listing tree
Hi list!

Does someone know a method to create a nested xml Tree structure from file
listing with paths?

eg.
...
<file name ="f1.xyz" path="/test/"/>
<file name ="f2.xyz" path="/test/folderInFolder/"/>
<file name ="f3.xyz" path="/test/folderInFolder/"/>
<file name ="f4.xyz" path="/test/folderInFolder2/"/>
<file name ="f5.xyz" path="/test2/folderInFolder3/"/>
...

to

<folder name="test">
    <folder name="folderInFolder">
        <file name="f2.xyz"/>
        <file name="f3.xyz"/>
    </folder
    <folder name="folderInFolder2">
        <file name="f4.xyz"/>
    </folder
<folder name ="test">
    <folder name="folderInFolder3">
        <file name="f5.xyz">
    </folder>
</folder>

Maybe anyone solved a similar problem?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.