I know this isn\'t really what XPath is for but if I have a HashMap of XPath expressions to values how would I go about building an XML document. I\'ve found dom-4j\'s Docu
I also wanted same kind of requirement where nature is so dynamic and dont want to use XSLT or any object mapping frameworks, so i've implemented this code in java and written blog on it please visit,
http://ganesh-kandisa.blogspot.com/2013/08/dynamic-xml-transformation-in-java.html
or fork code at git repository,
https://github.com/TheGanesh/DynamicXMLTransformer