Źródła XML
Importowanie danych XML w arkuszu kalkulacyjnym
Funkcja Źródło XML umożliwia importowanie danych z dowolnie ustrukturyzowanej treści XML do komórek w istniejącym dokumencie arkusza kalkulacyjnego. Pozwala to na importowanie zawartości XML częściowo lub w całości, w zależności od struktury treści XML i definicji map zdefiniowanych przez użytkownika. Użytkownik może określić wiele niepokrywających się pod-struktur, które mają być odwzorowane na różne pozycje komórek w tym samym dokumencie. Użytkownik może zaimportować zawartość elementu, wartości atrybutów lub jedno i drugie.
XML Source Dialog
The dialog consists of four parts.
Plik źródłowy
This lets you specify the path to the XML file that you wish to import into your document.
Mapuj do dokumentu
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.
Each element in the tree can be one of three types:
-
attribute, represented by the symbol @
-
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.
Powtarzający się element to element, który może pojawić się wiele razy pod tym samym rodzicem. Służy on jako rodzic wychodzący z pojedynczego rekordu z wieloma wpisami rekordów. Te wpisy są importowane do zakresu, którego wysokość jest równa liczbie wpisów plus jeden dodatkowy wiersz nagłówka.
Zmapowana komórka
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.
Import
Naciśnięcie przycisku Importu powoduje rozpoczęcie procesu importowania, w oparciu o definicje odsyłaczy podane przez użytkownika. Po zakończeniu importowania okno dialogowe zostanie zamknięte.