The TABLETOXML() function converts a table of values to 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 LO Calc will automatically return text in "XML" format:
=TABLETOXML(Range; "Countries")
We will have the following result:
This example uses the following values:
You can use the function TABLETOXML() by installing the extension
After that, this function will be available in all files that are opened in LibreOffice Calc .