Hello guys,<br><br>What i need to get in xquery is the last possible child&#39;s attribute.<br><br>Let&#39;s say i have following XML:<br><br>&lt;a&gt;<br>  &lt;aa lc=1&gt;<br>     &lt;aaa lc=00&gt;<br>     &lt;/aaa&gt;<br>
  &lt;/aa&gt;<br>  &lt;bb lc=0&gt;<br>  &lt;/bb&gt;<br>  &lt;zz lc=1&gt;<br>     &lt;ccc lc=123&gt;<br>     &lt;/ccc&gt;<br>  &lt;/zz&gt;<br>&lt;/a&gt;<br><br>and i want to get the last child of &#39;a&#39; node. So, in this case, it would be node &#39;ccc&#39;. Then, i want to get lc attribute - in this example, 123.<br>
<br>Thanks!<br>