I have a document with
<relation>
<relationType>USE</relationType>
<termName>a name</termName>
<termId>an ID</termId>
</relation>
The system we use needs
<relation>
<termId>an ID</termId>
<termName>a name</termName>
<relationType>USE</relationType>
</relation>
Is it possible to write a regex to reorder these properties? Many thanks