I have a XML response from which I need to extract the value of ObjDevice whenever the BillPlan="UBM - A/A". Can you please help me with a shell script to do the same
<Txn>
<TxnName>Spectrum-AlertSite-Component_spectrum.engprod_InstantUpgradeEdge_GetProductOffersByAccount_getProductOffersByAccountValid</TxnName>
<TxnDetail Monitor="y" Notify="y" PingError="n"
TraceError="y" Interval="5" TimeOut="300"
ObjDevice="318373" BillPlan="UBM - A/A" MaxSteps="50"
/>
</Txn>
<Txn>
<TxnName>Spectrum-AlertSite-Component_spectrum.engprod_InstantUpgradeEdge_GetProductOffersByAccount_getProductOffersByAccountValid</TxnName>
<TxnDetail Monitor="y" Notify="y" PingError="n"
TraceError="y" Interval="5" TimeOut="300"
ObjDevice="318377" BillPlan="UBM - A/A" MaxSteps="50"
/>