Hello,
I need to parse and find certain records where the record name contains a certain string.
For example, I have this XML:
How do I go about selecting all nodes that have the keyword LINING in the record name using XPATH?
The only way I could figure out was to use the exact name which is B06_LINING, but I need to be able to search just by LINING. Any suggestions?
I need to parse and find certain records where the record name contains a certain string.
For example, I have this XML:
Code:
<B04_CALIPER> <AAIA_ID>1368109</AAIA_ID> <MODEL>A4 QUATTRO</MODEL> <Nameplate/> <Submodel/> <Appl>Caliper to Bracket</Appl> <FTorq>18</FTorq> <RTorq>22</RTorq> <Note/> </B04_CALIPER> − <B06_LINING> <AAIA_ID>1368109</AAIA_ID> <Model_Name>A4 QUATTRO</Model_Name> <Nameplate/> <Submodel>STD Caliper</Submodel> <Loc>F</Loc> <Loc_Text>Front</Loc_Text> <MiniPad>.080</MiniPad> <MinShoe/> <NotP/> <NotS/> </B06_LINING> − <B06_LINING> <AAIA_ID>1368109</AAIA_ID> <Model_Name>A4 QUATTRO</Model_Name> <Nameplate/> <Submodel/> <Loc>R</Loc> <Loc_Text>Rear</Loc_Text> <MiniPad>.276</MiniPad> <MinShoe/> <NotP>Includes backing plate. </NotP> <NotS/> </B06_LINING> -<B06_LINING> <AAIA_ID>1368109</AAIA_ID> <Model_Name>A4 QUATTRO</Model_Name> <Nameplate/> <Submodel>W/ Dual Piston</Submodel> <Loc>F</Loc> <Loc_Text>Front</Loc_Text> <MiniPad>.120</MiniPad> <MinShoe/> <NotP/> <NotS/> </B06_LINING> − <B07_ROTOR> <AAIA_ID>1368109</AAIA_ID> <Model_Name>A4 QUATTRO</Model_Name> <Nameplate/> <Submodel/> <Pos>R</Pos> <Pos_Text>Rear</Pos_Text> <MaxPar>NS</MaxPar> <NotP/> <Runout>NS</Runout> <NotR/> <NomT>.390</NomT> <NotT/> <MinMach>NS</MinMach> <NotM/> <Discard>.310</Discard> <NotD/> <Finish>NS</Finish> <NotF/> </B07_ROTOR>
The only way I could figure out was to use the exact name which is B06_LINING, but I need to be able to search just by LINING. Any suggestions?
Comment