__init__ constructor
Leave feedback
On this page
Initializes a new instance of this class with default options.
def __init__(self):
...
from groupdocs.assembly.data import XmlDataLoadOptions, XmlDataSource
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
options = XmlDataLoadOptions()
options.always_generate_root_object = True # optional setting
xml_source = XmlDataSource("staff-roster.xml", options)
assembler = DocumentAssembler()
assembler.assemble_document(
"staff-roster-root.docx",
"staff-roster-root-report.docx",
DataSourceInfo(xml_source, "data")
)
- class
XmlDataLoadOptions
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.