小编sub*_*ndu的帖子

尝试使用VB.net序列化和反序列化xml文件

我序列化之后xml文件应该是这样的,然后我想在vb.net中反序列化它.我是编程的先驱.任何帮助表示赞赏.

<?xml version="1.0"?>
<Countries>
  <Country>
    <CID>1</CID>
    <CountryName>India</CountryName>
    <States>
      <State> New Delhi </State>
      <State> Maharashtra </State>
      <State> Rajasthan </State>
    </States>
  </Country>
  <Country>
    <CID>2</CID>
    <CountryName>United States</CountryName>
    <States>
      <State> Washington </State>
      <State> Texas </State>
    </States>
  </Country>
  <Country>
    <CID>3</CID>
    <CountryName>Australia</CountryName>
    <States>
      <State> Queensland </State>
      <State> Victoria </State>
    </States>
  </Country>
</Countries>
Run Code Online (Sandbox Code Playgroud)

xml vb.net serialization

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

serialization ×1

vb.net ×1

xml ×1