Generate XML from Paths
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
The following is in an array. /king /king/greenberg /king/greenberg/fariet I need to generate a XML string like this king greenberg fariet Any ideas on the best way to accomplish this with out too much recursion. Thanks ahead of time, DADA
there exists two ways to solve such problems. Iteratively Recursively Iteration is very difficult to write and VERY difficult to cover all the cases. Iteration is efficient and have less memory consumption. Recursion is very easy to implement (atleast for geeks) and easy to cover all cases. But it eats up the resources. But, I still prefer recursion. good luck. eff_kay ------------------- Therez No Place like ... 127.0.0.1