如何将xml文件转换为graphml文件

时间:2017-09-10 10:58:43

标签: xml xslt graphml

<bean>
    <paths>
        <paths_path>foo/bar/</paths_path>
        <paths_path>x/y</paths_path>
    <paths>
    <morePaths>
         <morePaths_path>a/b/c</morePaths_path>
         <morePaths_path>j/k/l</morePaths_path>
    <morePaths>
 <bean>

这是我的<?xml version="1.0" encoding="ISO-8859-1"?> <fmiModelDescription fmiVersion="1.0" modelName="bouncingBall" modelIdentifier="bouncingBall" guid="{8c4e810f-3df3-4a00-8276-176fa3c9f003}" numberOfContinuousStates="2" numberOfEventIndicators="1"> <ModelVariables> <ScalarVariable name="h" valueReference="0" description="height, used as state"> <Real start="1" fixed="true"/> </ScalarVariable> <ScalarVariable name="der(h)" valueReference="1" description="velocity of ball"> <Real/> </ScalarVariable> <ScalarVariable name="v" valueReference="2" description="velocity of ball, used as state"> <Real/> </ScalarVariable> <ScalarVariable name="der(v)" valueReference="3" description="acceleration of ball"> <Real/> </ScalarVariable> <ScalarVariable name="g" valueReference="3" description="acceleration of gravity" variability="parameter" alias="negatedAlias"> <Real start="9.81" fixed="true"/> </ScalarVariable> <ScalarVariable name="e" valueReference="4" description="dimensionless parameter" variability="parameter"> <Real start="0.7" fixed="true"/> </ScalarVariable> </ModelVariables> <Implementation> <CoSimulation_StandAlone> <Capabilities canHandleVariableCommuni cationStepSize="true" canHandleEvents="true"/> </CoSimulation_StandAlone> </Implementation> </fmiModelDescription> 文件,我想将其转换为xml文件,我搜索了graphml,但我找不到很多关于此转换的文档。我在这里很新,所以有人可以帮助我吗?

0 个答案:

没有答案