阅读背景:

为序列化/反序列化准备XML数据的正确方法是什么

来源:互联网 
    <?xml version="1.0" encoding="utf-8" ?>
<Hero>
  <Legion>
    <Andromeda>
      <SpellOne>
        <Name>Comet</Name>
        <Icon>Images/Spell/Andromeda/Spell1.gif</Icon>
        <Action>Target Unit</Action>
        <Description>Andromeda rips a comet from her dimension to hurl at an enemy, damaging and stunning them.</Description>
        <Ranks>
          <First>            
            <ManaCost>95</ManaCost>
            <Cooldown>10 Seconds</Cooldown>
            <Effects>Deals 100 Magic damage and stuns target for 1.75 seconds.</Effects>
            <ExtraEffects></ExtraEffects>
          </First>
          <Second>
            <ManaCost>110</ManaCost>
            <Cooldown>10</Cooldown>
            <Effects>Deals 175 Magic damage and stuns target for 1.75 seconds.</Effects>
            <ExtraEffects></ExtraEffects>
          </Second>
          <Third>
            <ManaCost>125</ManaCost>
            <Cooldown>10</Cooldown>
            <Effects>Deals 250 Magic damage and stuns target for 1.75 seconds.</Effects>
            <ExtraEffects></ExtraEffects>
          </Third>
          <Fourth>
            <ManaCost>140</ManaCost>
            <Cooldown>10</Cooldown>
            <Effects>Deals 325 Magic damage and stuns target for 1.75 seconds.</Effects>
            <ExtraEffects></ExtraEffects>
          </Fourth>
        </Ranks>
      </SpellOne>

      <SpellTwo>
        <Name>Aurora</Name>
        <Icon>Images/Spell/Andromeda/Spell2.gif</Icon>
        <Action>Target Position</Action>
        <Description>Andromeda shakes the magnetic field of Newerth, causing an Aurora to erupt, damage, and reduce the armor of all enemies in front of her.</Description>
        <Ranks>
          <First>
            <ManaCost>40</ManaCost>
            <Cooldown>15 Seconds</Cooldown>
            <Effects>Deals 25 damage to targets in a line and applies Aurora for 15 seconds.</Effects>
            <ExtraEffects>-5% Base Damage, -2 Armor</ExtraEffects>
          </First>
          <Second>
            <ManaCost>40</ManaCost>
            <Cooldown>15 Seconds</Cooldown>
            <Effects>Deals 50 damage to targets in a line and applies Aurora for 15 seconds.</Effects>
            <ExtraEffects>-10% Base Damage, -3 Armor</ExtraEffects>
          </Second>
          <Third>
            <ManaCost>40</ManaCost>
            <Cooldown>15 Seconds</Cooldown>
            <Effects>Deals 75 damage to targets in a line and applies Aurora for 15 seconds.</Effects>
            <ExtraEffects>-15% Base Damage, -4 Armor</ExtraEffects>
          </Third>
          <Fourth>
            <ManaCost>40</ManaCost>
            <Cooldown>15 Seconds</Cooldown>
            <Effects>Deals 100 damage to targets in a line and applies Aurora for 15 seconds.</Effects>
            <ExtraEffects>-20% Base Damage, -5 Armor</ExtraEffects>
          </Fourth>
        </Ranks>
      </SpellTwo>
    <?xml version="1.0" encoding="utf-8" ?>
<He



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: