The TABLETOXML() function converts a table of values into text in "XML" format.
=TABLETOXML(Range; [RootElement]; [RowElement])
The TABLETOXML() function is easy to use. You just need to select a table or specify any range of cells with values and LibreOffice Calc will automatically return the text in "XML" format:
=TABLETOXML(Range; "Countries")
We will have the following result:
This example uses the following values:
You can use the TABLETOXML() function by installing the extension "YLC_Utilities.oxt" .
After that, this function will be available in all files that will be opened in LibreOffice Calc.