Sven,

That is fantastic! Thank you so much, you really saved my day Smiley

I just implemented your solution in my application, and it works flawlessly!

I was messing aroung with strings and a custom generic tree class.
Needless to say, using XmlDocument with SelectSingleNode is so much neater, I guess I really have to learn XPath some day (still haven't got the time to delve into that stuff).

In VS2008 you also have the new XDocument / XElement / etc... classes, would these give me any specific benefits?