Re: [basex-talk] Adding UIDs to all the elements in a collection

2016-10-18 Thread Christian GrĂ¼n
> Is there a better way to do this? Your query could probably be shortened as follows: let $new := db:open($newName) update { .//* ! (insert node attribute UID { generate-id() } into .) } ... It does the same as your original query. But maybe you were asking for a better solution to

[basex-talk] Adding UIDs to all the elements in a collection

2016-10-18 Thread Graydon Saunders
HI -- In the process of trying to find the differences between two collections of schemas (the XML differences, as opposed to the not-semantically-meaningful differences in the order of the definitions), I find myself wanting to stick UIDs on everything. (So I can go "oh, this element node is