日期:2014-05-16  浏览次数:20730 次

求教XML序列化特殊格式
    想做一个配置文件,但是这种格式怎么也没弄出来,请教各位怎么才能序列化这种格式的XML来。
先谢谢啦!

<?xml version="1.0"?>
<ArrayOfItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <item Name="S">
    <Key="NO1">940000</Key>
<Key="NO2">920000</Key>
  </item>
    <item Name="M">
    <Key="NO1">980000</Key>
<Key="NO2">960000</Key>
  </item>
</ArrayOfItem>

------解决方案--------------------
  <Key="NO1">940000</Key>你这个XML文件问题,Key="NO1",这里不能直接=, <Key num="NO1">940000</Key>这样格式吧,