请问用C#编程如何生成如下的xml代码。谢谢了,能不能用两个类来实现?一个类存放数据,一个类执行生成方法
<?xmlversion="1.0"encoding="gb2312"?><ApplicationInfo><Assets><PrefabKey="Assets/Cube...
<?xml version="1.0" encoding="gb2312"?>
<ApplicationInfo>
<Assets>
<Prefab Key="Assets/Cube01EmptyPrefab.unity3d_0000" AssetPath="Assets/Cube01EmptyPrefab.unity3d" Size="1" Type="Dynamic" />
</Assets>
<Scene Name="">
<SceneIndex />
<Attachments>
<PrefabRef Source="Assets/Cube01EmptyPrefab.unity3d_0000" Position="400.0000, 0.0000, 400.0000" Max="0.0000, 0.0000, 0.0000" Min="0.0000, 0.0000, 0.0000" />
</Attachments>
</Scene>
</ApplicationInfo> 展开
<ApplicationInfo>
<Assets>
<Prefab Key="Assets/Cube01EmptyPrefab.unity3d_0000" AssetPath="Assets/Cube01EmptyPrefab.unity3d" Size="1" Type="Dynamic" />
</Assets>
<Scene Name="">
<SceneIndex />
<Attachments>
<PrefabRef Source="Assets/Cube01EmptyPrefab.unity3d_0000" Position="400.0000, 0.0000, 400.0000" Max="0.0000, 0.0000, 0.0000" Min="0.0000, 0.0000, 0.0000" />
</Attachments>
</Scene>
</ApplicationInfo> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询