Need Help with XML Serializer Example

I’m attempting to test the XML Serializer example, located here: http://wiki.unity3d.com/index.php/Saving_and_Loading_Data:_XmlSerializer
I’m working with C#
I’m getting the error CS0210: An object reference is required to access non-static member ‘MonsterContainer.Monsters’
The error makes little sense to me, because I am passing it an object.
What I would like to do with this is create a database of cards for a CCG game.
Any ideas of what is wrong? If not, have any better ideas than using xml?
Any help would be appreciated.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;
using System.IO;

public class MonsterTest : MonoBehaviour {




	void main()
	{
		var monsterCollection = MonsterContainer.Load(Path.Combine(Application.dataPath, "monsters.xml"));
		int test = MonsterContainer.Monsters [0].Health;
	}
}

I don’t know anything about the code in question, but by the looks of the error, I’d guess you want this:

void main()
{
	var monsterCollection = MonsterContainer.Load(Path.Combine(Application.dataPath, "monsters.xml"));
	int test = monsterCollection.Monsters[0].Health;
}

Note the change in the “int test =” line…

Jeff