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
The best I was able to come up with is to use a JAXB implementation, which will marshall/unmarshal objects to xml and then I used Dozer (http://dozer.sourceforge.net/documentation/mapbackedproperty.html) to map the xpaths which were keys in a map to the JAXB object method setters.
java.util.Map
org.example.Foo
this
Foo.entity.att
java.lang.String
It's more of a two step solution, but really worked for me.