开发者

Dynamic folder list output with XML input

开发者 https://www.devze.com 2022-12-18 16:42 出处:网络
Is there an easy way to create a folder structu开发者_JAVA百科re output from an XML input. Below is a sample of the XML input I am trying to parse:

Is there an easy way to create a folder structu开发者_JAVA百科re output from an XML input. Below is a sample of the XML input I am trying to parse:

  <file name="tmpFile1" path="{{Base}}\folder1\V1\Samples\DotNet\C#\VS2005\tmpFolder1" />
  <file name="tmpFile2" path="{{Base}}\folder1\V2\Samples\DotNet\C#\VS2005\tmpFolder2" />

Hoping I can get an output like with Windows Folders (with Base=C:):

alt text http://img686.imageshack.us/img686/9311/structure.jpg

Any ideas here?


As in...UI output? You might want to be more specific and supply what language you're working with.

If you're just interested in opening an explorer window, you could call explorer with particular arguments: http://www.mydigitallife.info/2009/02/07/command-line-switches-to-display-special-objects-or-folders-when-opening-windows-explorer/

In their example, calling %SystemRoot%\explorer.exe /N,%WinDir%\System32,/Select,%WinDir%\System32\Ping.exe will open System32 in the left pane and focus on Ping.exe in the right pane.

If you mean constructing a file tree explorer in a particular language or UI framework, I'm afraid you'll have to actually specify which one you're working in. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号