SetXML Method (Python)

Sets the chart XML from a UTF-8 (Unicode Transformation Format, 8 bit) string.

Syntax

SpssChartItem.SetXML(xml)

You can get the XML for a chart item using the GetXML method from the SpssOutputItem class. You can also use chart XML (OXML) created by the OMS command as the source for SetXML. To do so, extract the visualization element from the OXML, decode the resulting string to "UTF-8" (e.g., with the Python decode string method), and use the decoded string as the argument to SetXML.