tags:

views:

25

answers:

1

Is there an easy way to create a folder structure 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

Any ideas here?

A: 

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. :)

phyllis diller
Thanks for your response. I'm open to suggestions for any coding language. This is an internal tool that I want to create to parse XML (from a file list of Perforce files) to create a tree structure for an InstallShield installer. The tool used to create the XML is in java (not my choice...but it works). Take it easy though, I'm not a developer by default. :)
Japster24
phyllis diller