private void LoadFromXML(XmlDocument doc)
{
...
XmlAttributeCollection attributes = childNodes[i].Attributes;
if (attributes != null)
{
int weight = 1;
XmlAttribute xmlAttribute = attributes["weight"];
GameTextManager.ChoiceTag item = new GameTextManager.ChoiceTag(attributes["tag_name"].Value, weight);
list.Add(item);
}
...
}