public Range GetDefualtElementCount(String parent, String Child)
 {
     //TODO: Get data from a deafults.xml and implement
     Range tmp = new Range();
     tmp.minValue = 0;
     tmp.maxValue = 1;
     return tmp;
 }
        public Range GetElementCount(String parent, String Child)
        {
            XmlElement element = (XmlElement) root.SelectSingleNode("/config/constraints/"+parent+"/"+Child);
            if (element == null) return null;

            Range tmp = new Range();
            tmp.minValue = int.Parse( element.GetAttribute("minCount"));
            tmp.maxValue = int.Parse(element.GetAttribute("maxCount"));

            return tmp;
        }