Yes. In addition, if you don't have IDs in place and elements are all in the same container, you could maybe use their position. Or a combination of an XPAT selector for the contianer root and then a sequence of positions for the elements to be updated.
M.

On 03/06/19 09:46, Michael Seiferle wrote:
Hi Josh, 

I think the most widely used approach would be addressing items via ID — just as you would in a traditional database approach — this might involve adding IDs to all elements.

(as in, not selectable with a query)
With XPath you can select arbitrary parts of your document, maybe using XPath expressions would be helpful?


Hope this helps a bit, feel free to ask for more specific information  :)

Best 

Michael 







Am 31.05.2019 um 20:14 schrieb Joshua Kordani <joshua.kordani@speedcastwireless.com>:

Greetings all.
 
I am curious about how basex supports the idea of modifying any given (or set of given) elements, say a user makes a query to select a bunch of elements for editing and wishes to add an attribute to an arbitrary subset (as in, not selectable with a query), how do I reference a particular element for later updating?
 
Sincerely,
Josh