Forum Discussion
The xpath match assertion works correctly in version 5.3.0 with
//Block16DetailElectricity/TotalEnergyEssentTable/TableLine[@tableLineDescription='Dag1']/@amountExclVAT
The result is 49.50.
Are you using xpath match assertion or script assertion?
- AnkushP7 years agoNew Contributor
Thank You Paul for the reply. I am using Property Transfer step and then extracting value of the xml tags and attributes using Xpath filter and then saving the value in the Target property.
I am not using Xpath assertion as in my case I need to extract all the values from each and every step and then compare as explained in the main question.
- AnkushP7 years agoNew Contributor
Also, using this xpath gives a null result.
- PaulMS7 years agoSuper Contributor
Is @tableLineDescription='Verkoopprijs - dag' the correct attribute in the source property XML?
The XML example above is different with @tableLineDescription='Dag1'
If the attribute matches the xpath selection then the property transfer should work.
- AnkushP7 years agoNew Contributor
Thanks Paul, have found the solution, have to consider namespace in the xpath, this one worked:
//*:Block16DetailElectricity/*:TotalEnergyEssentTable/*:TableLine[@tableLineDescription = 'Verkoopprijs - dag']/@amountExclVAT
Related Content
Recent Discussions
- 5 days agoemoya