>Not that there's anything wrong with your code but you might want to look into the XPathNavigator for writing and parsing XML Documents. It's much easier in many ways and often does away with complex string expressions for finding content and parsing over it.