XmlDataSource constructor

XmlDataSource(xml_path)

Creates a new data source with data from an XML file using default options for XML data loading.

def __init__(self, xml_path: str):
    ...
ParameterTypeDescription
xml_pathstrThe path to the XML file to be used as the data source.

XmlDataSource(xml_stream)

Creates a new data source with data from an XML stream using default options for XML data loading.

def __init__(self, xml_stream: io.BytesIO):
    ...
ParameterTypeDescription
xml_streamio.BytesIOThe stream of XML data to be used as the data source.

XmlDataSource(xml_path, xml_schema_path)

Creates a new data source with data from an XML file using an XML Schema Definition file. Default options are used for XML data loading.

def __init__(self, xml_path: str, xml_schema_path: str):
    ...
ParameterTypeDescription
xml_pathstrThe path to the XML file to be used as the data source.
xml_schema_pathstrThe path to the XML Schema Definition file that provides schema for the XML file.

XmlDataSource(xml_stream, xml_schema_stream)

Creates a new data source with data from an XML stream using an XML Schema Definition stream. Default options are used for XML data loading.

def __init__(self, xml_stream: io.BytesIO, xml_schema_stream: io.BytesIO):
    ...
ParameterTypeDescription
xml_streamio.BytesIOThe stream of XML data to be used as the data source.
xml_schema_streamio.BytesIOThe stream of XML Schema Definition that provides schema for the XML data.

XmlDataSource(xml_path, options)

Creates a new data source with data from an XML file using the specified options for XML data loading.

def __init__(self, xml_path: str, options: aspose.words.reporting.XmlDataLoadOptions):
    ...
ParameterTypeDescription
xml_pathstrThe path to the XML file to be used as the data source.
optionsXmlDataLoadOptionsOptions for XML data loading.

XmlDataSource(xml_stream, options)

Creates a new data source with data from an XML stream using the specified options for XML data loading.

def __init__(self, xml_stream: io.BytesIO, options: aspose.words.reporting.XmlDataLoadOptions):
    ...
ParameterTypeDescription
xml_streamio.BytesIOThe stream of XML data to be used as the data source.
optionsXmlDataLoadOptionsOptions for XML data loading.

XmlDataSource(xml_path, xml_schema_path, options)

Creates a new data source with data from an XML file using an XML Schema Definition file. The specified options are used for XML data loading.

def __init__(self, xml_path: str, xml_schema_path: str, options: aspose.words.reporting.XmlDataLoadOptions):
    ...
ParameterTypeDescription
xml_pathstrThe path to the XML file to be used as the data source.
xml_schema_pathstrThe path to the XML Schema Definition file that provides schema for the XML file.
optionsXmlDataLoadOptionsOptions for XML data loading.

XmlDataSource(xml_stream, xml_schema_stream, options)

Creates a new data source with data from an XML stream using an XML Schema Definition stream. The specified options are used for XML data loading.

def __init__(self, xml_stream: io.BytesIO, xml_schema_stream: io.BytesIO, options: aspose.words.reporting.XmlDataLoadOptions):
    ...
ParameterTypeDescription
xml_streamio.BytesIOThe stream of XML data to be used as the data source.
xml_schema_streamio.BytesIOThe stream of XML Schema Definition that provides schema for the XML data.
optionsXmlDataLoadOptionsOptions for XML data loading.

See Also