private void readJoint(XmlNode node)
{
string str;
// xml.WriteStartElement("Joint");
str = readAttribute(node, "Joint", "0");
uint id = uint.Parse(str);
while (model.JointList.Count <= id)
model.JointList.Add(null);
Joint j = new Joint();
j.Id = id;
model.JointList.Add(j);
//readAttribute(node, "CoordSys", "GLOBAL");
//readAttribute(node, "CoordType", "Cartesian");
j.X = float.Parse(readAttribute(node, "XorR", j.X.ToString()));
j.Y = float.Parse(readAttribute(node, "Y", j.Y.ToString()));
j.Z = float.Parse(readAttribute(node, "Z", j.Z.ToString()));
//readAttribute(node, "SpecialJt", "Yes");
//readAttribute(node, "GlobalX", pos.X.ToString());
//readAttribute(node, "GlobalY", pos.Y.ToString());
//readAttribute(node, "GlobalZ", pos.Z.ToString());
}