---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/datavalidationxmlsaver
---

# DataValidationXmlSaver

## Overview

`DataValidationXmlSaver` is a class in Aspose.Cells FOSS for Python.

Saves DataValidation objects to ECMA-376 SpreadsheetML XML format.

This class declares 4 methods for DataValidationXmlSaver objects in Python programs.
Available methods include: `__init__`, `create_data_validations_xml`, `save_data_validations`, `to_xml_string`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `namespace`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `namespace` | - | Read | Gets the namespace. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(namespace)` | Initializes the DataValidationXmlSaver. |
| `save_data_validations(validations, parent_element)` | Saves a DataValidationCollection to XML as a child of the parent element. |
| `create_data_validations_xml(validations)` | Creates a standalone dataValidations XML element. |
| `to_xml_string(validations, include_declaration)` | Converts validations to an XML string. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)