Ajuda del LibreOffice 24.8
Importeu dades XML en un full de càlcul.
The XML Source feature allows to import data from arbitrarily structured XML content into cells in an existing spreadsheet document. It allows XML content to be imported either partially or in full, depending on the structure of the XML content and the map definitions that the user defines. The user can specify multiple non-overlapping sub-structures to be mapped to different cell positions within the same document. The user can import either element contents, attribute values or both.
El diàleg es composa de quatre parts.
This lets you specify the path to the XML file that you wish to import into your document.
This pane shows the structure of the source XML content as a tree. This is initially empty, and gets populated when you specify the source file.
Cadascun dels elements de l'arbre pot ser d'un dels tres tipus següents:
atribut, representat pel símbol @
single non-recurring element, represented by the symbol </>, and
recurring element, represented by the symbol <//>.
A non-recurring element is an element that can only occur once under the same parent. It is mapped to a single cell in the document.
A recurring element is an element that can appear multiple times under the same parent. It serves as an enclosing parent of a single record entry of multiple record entries. These entries are imported into a range those height equals the number of entries plus one additional header row.
This field specifies the position of a cell in the document that an element or an attribute is linked to. If it is a non-recurring element or an attribute, it simply points to the cell where the value of the linked element/attribute will get imported. If it is a recurring element, it points to the top-left cell of the range where the whole record entries plus header will get imported.
En fer clic al botó Importa s'inicia el procés d'importació basat en les definicions d'enllaços que ha proporcionat l'usuari. Quan finalitze la importació, el diàleg es tancarà.