taking value of first node attribute Options
dhirajDac
Posted: Friday, January 18, 2008 12:58:49 PM
Rank: Newbie

Joined: 1/17/2008
Posts: 6
Hi All,
I want to take the attribute value of first node only . As for example:--

<rules>
<rule name="ABC" type="EMAIL"/>
<rule name="BDG" type="EMAIL"/>
<rule name="ACD" type="SERVICE"/>
<rule name="13" type="SERVICE"/>
</rules>

i want only values of first node having different attribute as:-

<rules>
<rule name="ABC" type="EMAIL"/>
<rule name="ACD" type="SERVICE"/>
</rules>

How can I do.. Please help me out...
PeterD
Posted: Friday, January 18, 2008 1:39:35 PM

Rank: Fanatic

Joined: 7/20/2006
Posts: 486
Location: NL
Try position() = first()

Working on an events-calendar with recursion. Post requests on my blog!
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.