Tuesday, April 15, 2008 02:54 PM
Why did you store it in a HashMap?
I think that is the first question you need to ask. While there is no straight HashMap to Dom4j conversion, there had to be some property of the XML file that required it to be stored in a HashMap. Realizing that property will help you convert it to a Dom4j document and then subsequently to an XML file.