JAVA: Build XML document using XPath expressions

前端 未结 3 2005
北荒
北荒 2020-12-10 15:49

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

3条回答
  •  清歌不尽
    2020-12-10 16:08

    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

提交回复
热议问题