XMLSaver
Overview
XMLSaver is a class in Aspose.Cells FOSS for Python.
Handles saving workbook data to XML format for .xlsx files.
This class provides 14 methods for working with XMLSaver objects in Python programs.
Available methods include: __init__, append_override, col_signature, emit_range, get_or_create_alignment_style, get_or_create_border_style, get_or_create_cell_style, get_or_create_fill_style, get_or_create_font_style, get_or_create_number_format_style, get_or_create_protection_style, include_ref, and 2 additional methods.
All public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(workbook) | Initializes a new instance of the XMLSaver class. |
include_ref(ref) | Adds a reference to an external part for later inclusion |
save(file_path) | Saves the workbook to an Excel file (.xlsx format). |
append_override(part_name, content_type) | Registers a custom part with its content type to override defaults |
col_signature(col_idx) | Returns the column signature string for the specified column index |
emit_range(start_idx, end_idx, sig) | Writes a range of data from start to end indices using the provided signature |
register_default_styles() | Registers default styles for fonts, fills, borders, and alignments. |
get_or_create_font_style(font) | Gets or creates a font style index. |
get_or_create_fill_style(fill) | Gets or creates a fill style index. |
get_or_create_border_style(borders) | Gets or creates a border style index. |
get_or_create_alignment_style(alignment) | Gets or creates an alignment style index. |
get_or_create_protection_style(protection) | Gets or creates a protection style index. |
get_or_create_number_format_style(number_format) | Gets or creates a number format style index. |
get_or_create_cell_style(cell) | Gets or creates a cell xf style index. |