Solved

Reproduce Folderlist into xml Document with c#

Posted on 2011-03-16
3
401 Views
Last Modified: 2012-06-27
I would like to reproduce a folder list of directories, sub directories (or directory tree) and files as an xml document with nodes, sub-nodes etc.

My knowledge of XML is weak at best.

How would I go about this?
0
Comment
Question by:dbdp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 35146300
A complete example with files and all. (you just can comment out the file part if you don't need the files)

XML Directory Tree Generator
http://www.codeproject.com/KB/files/xmldirectorytreegen.aspx
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 35146305
Another example
C# XML Directory Lister
http://www.codeproject.com/KB/cs/xmldirectorylister.aspx

It's all just depending of what you want to see, what you want to store, ...
0
 

Expert Comment

by:satishmp
ID: 35146566
HI,

Check this link

http://www.15seconds.com/issue/010921.htm

Regards
Satish
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question