1

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.

Ed Bangga
  • 12,879
  • 4
  • 16
  • 30
DDas
  • 425
  • 6
  • 11

0 Answers0