I have a problem with some values not being declared as XML elements in my XML files. But for further processing, I need them to be an element. Example:
<A>
<B id="254">
12.34
<C>Lore</C>
<D>9</D>
</B>
</A>
In the end, the XML file should look like this:
<A>
<B id="254">
<Z>12.34</Z>
<C>Lore</C>
<D>9</D>
</B>
</A>
The difference to stackoverflow.com/q/75586178/407651 is that in this problem an XML-Element was in front of the plain text. The feature was used in the solution. There the solution can not be used.