<Shipment Action>
<ShipmentLines>
<ShipmentLine PrimeLine="2" />
<ShipmentLine PrimeLine="3"/>
<ShipmentLine PrimeLine="4"/>
<ShipmentLine PrimeLine="1"/>
</ShipmentLines>
</Shipment Action>
in the above xml file i have to pick out the ShipmentLine count, some times ShipmentLine increases.
I have tried different rex combination without luck, any suggestions.
output:
ShipmentLine=4 count
| rex max_match=0 "(?<ShipmentLine>ShipmentLine)\s"
| eval count=mvcount(ShipmentLine)
Since your elements don't appear to have any data (only attributes) spath/xpath will end up with empty fields which then can't be easily counted
| rex max_match=0 "(?<ShipmentLine>ShipmentLine)\s"
| eval count=mvcount(ShipmentLine)
Since your elements don't appear to have any data (only attributes) spath/xpath will end up with empty fields which then can't be easily counted
Thank you so much