简体   繁体   English

信息XML转换为XMI

[英]Information XML convert to XMI

I create a program to scan one database special. 我创建了一个程序来扫描一个特殊数据库。

I get information like name of the class name of attribute and i all stocked in XML, and i want to get a graphs of those information to give me a visibility of the database. 我得到诸如属性的类名的名称之类的信息,并且我都以XML进行存储,并且我想获取这些信息的图形以使我对数据库具有可见性。

My XML likes this : 我的XML喜欢这样:

 <Zone OrdreZone="4" Redifinies="">
        <InfoCommon Niveau="7" Name="MyName1."/>
        <Attribut Type="Int" Longueur="22" OrdreAttribut="20">
            <InfoCommon Niveau="10" Name="XXXXXX"/>
        </Attribut>
        <Attribut Type="9(008)." Longueur="22" OrdreAttribut="21">
            <InfoCommon Niveau="10" Name="MyName2"/>
        </Attribut>
        <Attribut Type="9(006)." Longueur="22" OrdreAttribut="22">
            <InfoCommon Niveau="10" Name="MyName3"/>
        </Attribut>
        <Zone OrdreZone="5" Redifinies="">
            <InfoCommon Niveau="10" Name="SC-CLESC."/>
            <Attribut Type="X(007)." Longueur="22" OrdreAttribut="15">
                <InfoCommon Niveau="15" Name="MyName4"/>
            </Attribut>
            <Attribut Type="X(023)." Longueur="22" OrdreAttribut="16">
                <InfoCommon Niveau="15" Name="MyName5"/>
            </Attribut>
            <Zone OrdreZone="6" Redifinies="">
                <InfoCommon Niveau="15" Name="MyName6"/>
                <Attribut Type="9(005)." Longueur="22" OrdreAttribut="12">
                    <InfoCommon Niveau="20" Name="MyName7"/>
                </Attribut>
                <Attribut Type="X(011)." Longueur="22" OrdreAttribut="13">
                    <InfoCommon Niveau="20" Name="MyName8"/>
                </Attribut>
                <Attribut Type="X(003)." Longueur="22" OrdreAttribut="14">
                    <InfoCommon Niveau="20" Name="MyName9"/>
                </Attribut>
            </Zone>
            <Zone OrdreZone="7" Redifinies="">
                <InfoCommon Niveau="15" Name="MyName10"/>
                <Attribut Type="X(008)." Longueur="22" OrdreAttribut="17">
                    <InfoCommon Niveau="20" Name="MyName11"/>
                </Attribut>
                <Attribut Type="X(017)." Longueur="22" OrdreAttribut="18">
                    <InfoCommon Niveau="20" Name="MyName12"/>
                </Attribut>
                <Attribut Type="X(001)." Longueur="22" OrdreAttribut="19">
                    <InfoCommon Niveau="20" Name="MyName13"/>
                </Attribut>
            </Zone>
        </Zone>
    </Zone>

And i want convert to xmi 我想转换为XMI

zone link with zone 区域链接

Maybe xslt can do this ??? 也许xslt可以做到这一点?

Thanks 谢谢

I just create a program to write line by line with the regle of XMI to get a file XMI. 我只是创建一个程序来与XMI的代码逐行写入,以获取文件XMI。 And I didn't find any lib which can do something like this 而且我没有找到可以做这样的事情的库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM