public ParaGroup() { Dimensions = new Dimensions(); ExampleList = new ExampleList(); Blendable = new Blendable(); MotionCombination = new MotionCombination(); }
public void ReadXml(XmlReader reader) { //Create dimensions and read from file while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element) { if (reader.LocalName == "Dimensions") { Dimensions = new Dimensions(); Dimensions.ReadXml(reader); } if (reader.LocalName == "ExampleList") { ExampleList = new ExampleList(); ExampleList.ReadXml(reader); } if (reader.LocalName == "Blendable") { Blendable = new Blendable(); Blendable.ReadXml(reader); } if (reader.LocalName == "MotionCombination") { MotionCombination = new MotionCombination(); MotionCombination.ReadXml(reader); } //other node types } } }
public void WriteXml(XmlWriter writer) { //Write the child nodes //Serialize dimensions Dimensions.WriteXml(writer); ExampleList.WriteXml(writer); Blendable.WriteXml(writer); MotionCombination.WriteXml(writer); }