Edit XML file for iOS/macOS shortcuts integration

Hi, I would like to create a shortcut using iOS/macOS Shortcuts App that let me add new transactions while on the go.
I want to edit XML that contains all my infos. When looking at the XML source code I see that every transaction is expressed like this:

<account-transaction>
          <uuid>3f734a42-400f-4c13-b9e4-f8cee1559a6f</uuid>
          <date>2022-03-25T00:00</date>
          <currencyCode>EUR</currencyCode>
          <amount>66813</amount>
          <shares>0</shares>
          <note>Saldo iniziale</note>
          <updatedAt>2022-03-27T11:42:02.742308Z</updatedAt>
          <type>DEPOSIT</type>
</account-transaction>

Fairly simple. However what is the UUID field used for? How is it generated? It seems like it’s not an unique ID transaction because I can have multiple transaction with the same UUID without issues.

The UUID is a UNIQUE identifier: Universally unique identifier - Wikipedia
It may be possible to open a file with duplicate UUIDs for different transaction but it is highly recommended to generate new unique UUIDs (every programming language supports this) for new transactions.