Example #1
0
        private Parts.Variable ParseVariableNode(XmlNode xNode)
        {
            var variable = new Parts.Variable();

            variable.language =
                (Parts.Variable.Language)
                Enum.Parse(typeof(Parts.Variable.Language), xNode.Attributes["language"].Value.ToUpper());
            variable.name  = xNode.Attributes["name"].Value;
            variable.value = xNode.Attributes["value"].Value;

            return(variable);
        }
Example #2
0
        private Parts.Variable ParseVariableNode(XmlNode xNode)
        {
            var variable = new Parts.Variable();

            variable.language =
                (Parts.Variable.Language)
                    Enum.Parse(typeof(Parts.Variable.Language), xNode.Attributes["language"].Value.ToUpper());
            variable.name = xNode.Attributes["name"].Value;
            variable.value = xNode.Attributes["value"].Value;

            return variable;
        }