Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im using
SQL
<xsl:for-each select="Data/data_table">

if i use foreach i will loop for more thank 100k is there better way to fillter it ?

XML
XML

<Data>
<data_table>
<type>X</types>
<name>Name</name>
</data_table>
</Data>


i just want to loop only to all type X.
Posted

1 solution

Try:
XML
<xsl:for-each select="Data/data_table[type = 'X']">
 
Share this answer
 
Comments
strongholdx 2-Oct-14 23:00pm    
thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900