<?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?什么是适当的方式来做到这一点。只要我学习准备用于序列化/反序列化的XML数据的正确方法,我不会介意从头开始重新编写1300行XML。
非常感谢。
如何:在Visual Basic .NET中序列化和反序列化XML:http://support.microsoft.com/kb/316730 – 2010-01-03 02:23:34
我不问过序列化的编程方面。我首先需要学习正确的方法来首先准备数据。 :D请帮助。 – 2010-01-03 02:26:51
“准备”数据是什么意思?问题也是关于格式而不是“准备”。你能否更具体地说出你的担忧/恐惧/怀疑是什么? (如果有帮助,除了', ...'和', ...'元素外,你显示的内容看起来还好,这可以通过重复“”和“”元素来更好地处理。) –
itowlson
2010-01-03 02:38:55