我有一个XML响应,每当BillPlan =“UBM - A/A”时,我需要从中提取ObjDevice的值。能否请你帮我一个shell脚本做同样的Shell脚本从XML响应中提取变量的值
<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"
/>
你看任何其他的“我怎么提取XML文档中的壳价值”的问题吗? –