Hi
I would like to ask a question. I have a method that adds nodes basing on
ArrayList ( contains path to file ) as follows.
DIR1
subDIR1
subDIR2
..
..
FILE
I'am building the nodes in the following way.
foreach (object var in mList)
{
w.WriteStartElement(var.ToString());
}
for (int i = 0; i < mList.Count; i++)
{
w.WriteEndElement();
}
But when i enter method again ( it's called for every file ) i have another
ArrayList similar to previous but with the different file ( in the same
directory )
And the question is:
How to add the node ( the file in the same directory and subdirectories )?
When i do this using presented method i got duplicated nods with the outer
directories:
for example.
<DIR1>
<file>
</DIR1>
<DIR1>
<file2>
</DIR1>
Thanks
PK
--
Pozdrawiam
Piotr Kolodziej
http://piotrkolodziej.waikru.info