最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Python library that takes as input a complex XSD and outputs the an XML - Stack Overflow

programmeradmin1浏览0评论

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="; 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

发布评论

评论列表(0)

  1. 暂无评论