nikhilparchure
Programmer
scenario i have a problem
[Filtering of an in-memory created XML node]
lets us have an example that will cite my problem
<XML>
<XYZ CORP>
<NAME>XYZ Corporation </NAME>
<YEARS>20 </YEARS>
<XYZ CORP>
<ABC LTD>
<NAME>XYZ Corporation </NAME>
<YEARS>17 </YEARS>
<ABC LTD>
</XML>
suppose my XML node is created in such a way
and i have to filter it such that i get company which has minimum years
i.e. i have to get a node corrosponding to "ABC LTD"
I am using XML Dom component for parsing this
well this can be doing looping thru the nodes and we can have have corrosponding node having minimum years
well do u have a solution where this can be done using some in-built XML function i.e to give the node which has minimum
years
Well the scenario seems eazy out here bcoz i have taken
only 2 nodes in consideration
but where i am coding i have about 1000 nodes created at a point of time. so looping will consume time
do u ppl have any remedy
pls help guys this is urgent
thanks in advance
nikhil
[Filtering of an in-memory created XML node]
lets us have an example that will cite my problem
<XML>
<XYZ CORP>
<NAME>XYZ Corporation </NAME>
<YEARS>20 </YEARS>
<XYZ CORP>
<ABC LTD>
<NAME>XYZ Corporation </NAME>
<YEARS>17 </YEARS>
<ABC LTD>
</XML>
suppose my XML node is created in such a way
and i have to filter it such that i get company which has minimum years
i.e. i have to get a node corrosponding to "ABC LTD"
I am using XML Dom component for parsing this
well this can be doing looping thru the nodes and we can have have corrosponding node having minimum years
well do u have a solution where this can be done using some in-built XML function i.e to give the node which has minimum
years
Well the scenario seems eazy out here bcoz i have taken
only 2 nodes in consideration
but where i am coding i have about 1000 nodes created at a point of time. so looping will consume time
do u ppl have any remedy
pls help guys this is urgent
thanks in advance
nikhil