Download IBM SPSS Statistics 19 Core System User's Guide

Transcript
396
Chapter 21
<dimension axis="column" text="Statistics">
<category text="Frequency">
<cell text="474" number="474"/>
</category>
<category text="Percent">
<cell text="100.0" number="100" decimals="1"/>
</category>
<category text="Valid Percent">
<cell text="100.0" number="100" decimals="1"/>
</category>
</dimension>
</category>
</group>
</dimension>
</pivotTable>
</command>
</outputTree>
As you may notice, a simple, small table produces a substantial amount of XML. That’s partly
because the XML contains some information that is not readily apparent in the original table,
some information that might not even be available in the original table, and a certain amount
of redundancy.
„
The table contents as they are (or would be) displayed in a pivot table in the Viewer are
contained in text attributes. An example is as follows:
<command text="Frequencies" command="Frequencies"...>
„
Text attributes can be affected by both output language and settings that affect the display of
variable names/labels and values/value labels. In this example, the text attribute value will
differ, depending on the output language, whereas the command attribute value remains the
same, regardless of output language.
„
Wherever variables or values of variables are used in row or column labels, the XML will
contain a text attribute and one or more additional attribute values. An example is as follows:
<dimension axis="row" text="Gender" label="Gender" varName="gender">
...<category text="Female" label="Female" string="f" varName="gender">
„
For a numeric variable, there would be a number attribute instead of a string attribute. The
label attribute is present only if the variable or values have defined labels.
„
The <cell> elements that contain cell values for numbers will contain the text attribute and one
or more additional attribute values. An example is as follows:
<cell text="45.6" number="45.569620253165" decimals="1"/>