Hi Christian,<br><br>Yes, it did the trick.<br><br>However, i can do only /descendant::*[@start][last()].<br><br>If i try to get value of @lc, then i get error: &quot;A document node may not have  an attrribute node&quot;<br>
<br>(i use Xml Spy 2009)<br><br>Any ideas how to get that value?<br><br><div class="gmail_quote">On Sun, Mar 8, 2009 at 2:16 PM, Christian Grün <span dir="ltr">&lt;<a href="mailto:christian.gruen@gmail.com">christian.gruen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">&gt; Also, i forgot to add that not every node must have lc attribute.<br>
<br>
</div>Try this:  /descendant::*[@lc][last()]/@lc<br>
<br>
Christian<br>
<a href="http://basex.org" target="_blank">http://basex.org</a><br>
</blockquote></div><br>