Having problems with the XML serializer

I’ll show code to help you understand the problem I’m having with the System.XML. My code is basically the code from http://wiki.unity3d.com/index.php?title=Saving_and_Loading_Data:_XmlSerializer with the variable names changed. My code works when my ‘card.cs’ looks like this. (instead of the monster.cs code the example uses.) Here is my XML and code.

<CardCollection>
 	<Cards>
		<Card name="NotACard">
 			<Health1>0</Health1>
			<Health2>0</Health2>
			<Health3>0</Health3>
			<Health4>0</Health4>
			
		
 		</Card>
 	</Cards>
 </CardCollection>

using UnityEngine;
using System.Xml;
using System.Xml.Serialization;

public class Card
{ 
	[XmlAttribute("name")]
	public string Name;
	
	public int Health1;
	public int Health2;
	public int Health3;
	public int Health4;


}

Like I said before, the above works. Now, add in an attack1 tag (under the Health4 tags) to the XML and int Attack1; to the card code. It throws an format exception when attempting to run it. No other changes to the code are made. Any ideas what is wrong?

Not sure what happened, but I added the parts that didn’t work before and now it works, so disregard this question.