I have a XML file in which a node's value is a xpath exp
//n-document[./n-docbody/TTA-DOCINFO/TTA-ANCESTOR[@value=#UID#]].
I need to get this xpath exp in my java code(which i am able to) and replace the UID in the xpath with an existing string variable value.
For ex:- if the string variable is "XXX", my xpath should become:
//n-document[./n-docbody/TTA-DOCINFO/TTA-ANCESTOR[@value=XXX]]
How do i achieve this.