Creating dynamic xml tree based on the xpath value



I want to create a create a dynamic xml tree base on the xpath. Lets for example my xpath value is



Product/Organization/RegisteredDetail/something


and I want to put value in the following format.



<product>
<organization>
<registeredDetail>
<something>valueOfSomething</something>
</registeredDetail>
</organization>
<product>


In short I want to create a treeview/tree table by reading xpath. I want to put the value at the inner most child and show the location of value in a tree structure Or simply the location of the child in a tree form. The value of the xpath will be vary. Any suggestion using java or jquery will be valuable for me.


No comments:

Post a Comment