Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generate XPATH using XDK

RameshkumarTJun 13 2013 — edited Jun 14 2013

I have a requirement where I need to  parse the XML and get the nodename,nodevalue and xpath of each node

I searched through XDK documentation but could not find a function/method to generate/built the XPATH

I can see that there are get methods like selectSingleNode .

Here is the sample XML

<BkToCstmrDbtCdtNtfctn>

       <GrpHdr>

          <MsgId>0000000009</MsgId>

          <CreDtTm>2013-04-16T14:31:45</CreDtTm>

      </GrpHdr>

</BkToCstmrDbtCdtNtfctn>

I need to get the following as output

MsgId  ,0000000009 ,/Document/BkToCstmrDbtCdtNtfctn/GrpHdr/MsgId                   and

CreDtTm, 2013-04-16T14:31:45,/Document/BkToCstmrDbtCdtNtfctn/GrpHdr/CreDtTm

Can Someone throw me some light

Comments

gimbal2
You learn to properly use and setup the tool you're using. And you do that by reading its manual.
user10878219
extract the war which you had deployed on tomcat and see if this jar is present there, if not then your war file packaging is not proper.
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 12 2013
Added on Jun 13 2013
3 comments
1,987 views