How to convert HashMap to dom4j Document
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   suman_macherla
Posted On:   Tuesday, April 15, 2008 08:57 AM

Hi Friends,

My requirement is to convert the HashMap to dom4j document

I have parsed the Xml file using dom4j document and i have stored in the HashMap.

Now the requirement is to convert the hashmap tp dom4j Document

Thanks in advance
Suman

Re: How to convert HashMap to dom4j Document

Posted By:   Stephen_McConnell  
Posted On:   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.


Stephen McConnell

About | Sitemap | Contact