I know my question is not crystal clear but i'd like to find a robust and reliable python library that is taking as input a complex Xml Schema Definition file and produces the an XML file. For example i have this XSD: <xsd:schema xmlns:stf="urn" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0"> <!-- Kind of Name --> <xsd:simpleType name="NameType_EnumType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="OECD201"/> <xsd:enumeration value="OECD202"/> <xsd:enumeration value="OECD203"/> <xsd:enumeration value="OECD204"/> <xsd:enumeration value="OECD205"/> <xsd:enumeration value="OECD206"/> <xsd:enumeration value="OECD207"/> <xsd:enumeration value="OECD208"/> </xsd:restriction> </xsd:simpleType> <!-- --> </xsd:schema> How can with this XSD as input produce an XML? The data will be populated from a table. Most likely, they will be spark dataframes Continue reading...