|
-
Apr 19th, 2007, 04:08 PM
#1
Thread Starter
Junior Member
[RESOLVED] Help with Xpath/VB6
Not sure if I should be posting it here, or in the XML forum, but here goes;
I need to parse and find certain records where the record name contains a certain string.
For example, I have this XML:
<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>
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|