Hi All,
I want to match the message name and value but both are linked with a variable p , how to extract each of the message name and match with corresponding value using the variable p with respective corresponding obj list.
below is the sample XML file .
<measData>
<managedElement swVersion="CXP9024418_6 R67D23"/>
<measInfo measInfoId="PM=1,PmGroup=FieldReplaceableUnit">
<job jobId="PREDEF_Nc"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">pmPowerFailure</measType>
<measType p="2">pmUnitTemperatureLevel</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=1">
<r p="1"> </r>
<r p="2">3,3,3</r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=RRU-1">
<r p="1">0</r>
<r p="2"> , , </r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=RRU-2">
<r p="1">0</r>
<r p="2"> , , </r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=RRU-3">
<r p="1">0</r>
<r p="2"> , , </r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=RRU-4">
<r p="1">0</r>
<r p="2"> , , </r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=RRU-5">
<r p="1">0</r>
<r p="2"> , , </r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,FieldReplaceableUnit=RRU-6">
<r p="1">0</r>
<r p="2"> , , </r>
</measValue>
</measInfo>
<measInfo measInfoId="PM=1,PmGroup=Climate">
<job jobId="PREDEF_Apc"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">pmCabinetFanSpeed</measType>
<measType p="2">pmCabinetFanSpeedExternal</measType>
<measType p="3">pmCabinetTemperature</measType>
<measType p="4">pmSpmBarometricAirPressure</measType>
<measType p="5">pmSpmDifferentialAirPressure</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,EquipmentSupportFunction=1,Climate=1">
<r p="1"> , , </r>
<r p="2"> , , </r>
<r p="3"> , , </r>
<r p="4"> </r>
<r p="5"> </r>
<suspect>true</suspect>
</measValue>
</measInfo>
<measInfo measInfoId="PM=1,PmGroup=PowerDistribution">
<job jobId="PREDEF_Apc"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">pmSystemVoltage</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,EquipmentSupportFunction=1,PowerDistribution=1">
<r p="1"> , , , , , , , , , , , , , , </r>
<suspect>true</suspect>
</measValue>
</measInfo>
<measInfo measInfoId="PM=1,PmGroup=PowerSupply">
<job jobId="PREDEF_Apc"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">pmPsuAcInputVoltageInterruption</measType>
<measType p="2">pmPsuPowerLoad</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,EquipmentSupportFunction=1,PowerSupply=1">
<r p="1"> , , , , , , , , , </r>
<r p="2"> , , , , , , , , , , , , , , </r>
<suspect>true</suspect>
</measValue>
</measInfo>
<measInfo measInfoId="PM=1,PmGroup=SupportUnit">
<job jobId="PREDEF_Apc"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">pmFanSpeed</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,Equipment=1,SupportUnit=1">
<r p="1">35,35,35</r>
</measValue>
</measInfo>
<measInfo measInfoId="PM=1,PmGroup=EthernetPort">
<job jobId="PREDEF_Rtn"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">ifHCInBroadcastPkts</measType>
<measType p="2">ifHCInMulticastPkts</measType>
<measType p="3">ifHCInOctets</measType>
<measType p="4">ifHCInUcastPkts</measType>
<measType p="5">ifHCOutBroadcastPkts</measType>
<measType p="6">ifHCOutMulticastPkts</measType>
<measType p="7">ifHCOutOctets</measType>
<measType p="8">ifHCOutUcastPkts</measType>
<measType p="9">ifInDiscards</measType>
<measType p="10">ifInErrors</measType>
<measType p="11">ifInUnknownProtos</measType>
<measType p="12">ifInUnknownTags</measType>
<measType p="13">ifOutDiscards</measType>
<measType p="14">ifOutErrors</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,Transport=1,EthernetPort=TN_C">
<r p="1">0</r>
<r p="2">22502</r>
<r p="3">1489889227</r>
<r p="4">5952986</r>
<r p="5">0</r>
<r p="6">0</r>
<r p="7">419797118</r>
<r p="8">3685665</r>
<r p="9">4</r>
<r p="10">0</r>
<r p="11">0</r>
<r p="12">0</r>
<r p="13">0</r>
<r p="14">0</r>
</measValue>
</measInfo>
<measInfo measInfoId="PM=1,PmGroup=InterfaceIPv4">
<job jobId="PREDEF_Rtn"/>
<granPeriod duration="PT900S"
endTime="2020-09-22T10:30:00+00:00"/>
<repPeriod duration="PT900S"/>
<measType p="1">ipIfStatsHCInOctets</measType>
<measType p="2">ipIfStatsHCInReceives</measType>
<measType p="3">ipIfStatsHCOutOctets</measType>
<measType p="4">ipIfStatsHCOutTransmits</measType>
<measType p="5">ipIfStatsInAddrErrors</measType>
<measType p="6">ipIfStatsInDiscards</measType>
<measType p="7">ipIfStatsInHdrErrors</measType>
<measType p="8">ipIfStatsInNoRoutes</measType>
<measType p="9">ipIfStatsInTruncatedPkts</measType>
<measType p="10">ipIfStatsInUnknownProtos</measType>
<measValue measObjLdn="ManagedElement=UXJD6109,Transport=1,Router=vr_IUB,InterfaceIPv4=IUB">
<r p="1">1348364673</r>
<r p="2">5952899</r>
<r p="3">335133181</r>
<r p="4">3685515</r>
<r p="5">0</r>
<r p="6">0</r>
<r p="7">0</r>
<r p="8">0</r>
<r p="9">0</r>
<r p="10">0</r>
</measValue>
<measValue measObjLdn="ManagedElement=UXJD6109,Transport=1,Router=vr_MUB,InterfaceIPv4=MUB">
<r p="1">30798</r>
<r p="2">121</r>
<r p="3">72144</r>
<r p="4">166</r>
<r p="5">0</r>
<r p="6">0</r>
<r p="7">0</r>
<r p="8">0</r>
<r p="9">0</r[spoiler]
<r p="10">0</r>```