我有一个XML文件,必须转换为类对象 [英] I have one XML file and have to convert into class object

查看:69
本文介绍了我有一个XML文件,必须转换为类对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须创建这些xml文件的类。

I have to create class of these xml file.

<Type>Label</Type>
          <Name>Label1</Name>
          <Text>label</Text>
          <X>20</X>
          <Y>30</Y>
          <Width>35</Width>
          <Height>13</Height>
          <Visible>True</Visible>
          <Enable>True</Enable>
  </control>







<control>
         <Type>TextBox</Type>
         <Name>textbox1</Name>
         <Text></Text>
         <X>93</X>
         <Y>30</Y>
         <Width>100</Width>
         <Height>20</Height>
         <Visible>True</Visible>
         <Enable>True</Enable>  </control>





我的尝试:



我没有任何想法。这该怎么做。甚至我在谷歌搜索。没有得到结果



What I have tried:

I don't have any singal idea. How to do this. Even I searched on google. Not getting result

推荐答案

这篇CP文章可以帮助你: XML序列化和反序列化:第2部分 [ ^ ]
This CP article should help you along: XML Serialization and Deserialization: Part-2[^]


这篇关于我有一个XML文件,必须转换为类对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆