cancel
Showing results for 
Search instead for 
Did you mean: 

Need capture value of a filed from XML

Reddy4417
Explorer
0 Kudos
276

Dear All,

Good day, i hope your doing well.

i have a requirement to capture only value of a filed from the input data to recevier system.

i have used xpath, filter condition and some script but no luck.

here is the sample input format

need only value of fileData, as below

1234sdjahffbccojadsdqhwsSNsnsJDFADHADS

quick help appriciated.

BR,

Chinnu

View Entire Topic
MortenWittrock
SAP Mentor
SAP Mentor

Hi Chinnu

The reason your attempts so far haven't worked is very likely the namespaces in the document. A quick and dirty way around that is this:

//*[local-name() = 'fileData']

Use this XPath expression in a Content Modifier to store the value in a property.

The more elaborate way is to declare the namespaces in your iflow's runtime configuration, and then use the namespace prefixes in the XPath expression. But in this case, the above will also work.

(It only works if there is exactly one fileData element in the document, but that does seem to be the case.)

Regards,

Morten

Reddy4417
Explorer

Hello Morten Wittrock,

this worked perfectly , thanks for your help and time.

BR,

Chinnu.