Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exact Recordsets

Status
Not open for further replies.

Jhoncue7

Programmer
Joined
Mar 22, 2004
Messages
2
Location
US
How do you choose a specific recordset instead of just going between first, next, previous, and last.
 
If you mean how do select specific nodes, then you need to look at xpath.

eg (borrowed from this forum)

<VFILE_DATA>
<SCREEN CODE="IFC">
<OWNER_TYPE>case</OWNER_TYPE>
<OWNER_CODE>471</OWNER_CODE>
<GROUP_NO>0</GROUP_NO>
<FIELD NUMBER="1">
<DATA>NW01NW001</DATA>
</FIELD>
<FIELD NUMBER="2">
<DATA>18/03/04</DATA>
</FIELD>
<FIELD NUMBER="3">
<DATA>12:11</DATA>
</FIELD>
<FIELD NUMBER="4">
<DATA/>
</FIELD>



and use

<xsl:value-of select="VFILE_DATA/SCREEN/[@NUMBER='3']/"/>


this bit is xpath:

VFILE_DATA/SCREEN/[@NUMBER='3']/



try here for a tutorial

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top