How can I search through a (selected part of) the filesystem from a folder that the user can fill in, to build an output XML file that contains a structure of only the folders including files, the output should be like this
(so I only want the folders with files in it):
<xml>
<folder path="c:\dir\dir1" title="dir dir1">
<file name="test.doc"/>
<file name="test2.doc"/>
<file name="test3.doc"/>
</folder>
<folder path="c:\dir\dir2" title="dir dir2">
<file name="test.doc"/>
</folder>
<folder path="c:\dir\dir2\dir" title="dir dir2 dir">
<file name="test.doc"/>
</folder>
</xml>
thanks in advance for your reaction
(so I only want the folders with files in it):
<xml>
<folder path="c:\dir\dir1" title="dir dir1">
<file name="test.doc"/>
<file name="test2.doc"/>
<file name="test3.doc"/>
</folder>
<folder path="c:\dir\dir2" title="dir dir2">
<file name="test.doc"/>
</folder>
<folder path="c:\dir\dir2\dir" title="dir dir2 dir">
<file name="test.doc"/>
</folder>
</xml>
thanks in advance for your reaction