Hi Christian, thanks! I don't know if this helps, is data added at the top or bottom? I haven't been able to see a pattern, but if data is added at the bottom, this will probably do it, silly of me not to test last or tail ..... I'll give it a try! // Sam -----Original Message----- From: Christian GrĂ¼n [mailto:christian.gruen@gmail.com] Sent: den 15 oktober 2014 12:36 To: Sam Eklund Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Xpath gives multiple results, finding the one originating from the latest imported document? Hi Sam,
This gives me the first node that matches the xpath, but is there a way to retrieve the node that originates from the latest imported document?
The following query will give you the last node: (//event[eventID="12345ABC"]) [last()] Does this help? Christian