private void ParseTargets(XmlDocument doc) { foreach (XmlElement element in doc.GetElementsByTagName("target")) { NAntTarget nantTarget = new NAntTarget(); nantTarget.ParseAttributes(element); if (nantTarget.Name == _defaultTargetName) { nantTarget.Default = true; } Targets.Add(nantTarget); } Targets.Sort(); }
private void ParseTargets(XmlDocument doc) { foreach (XmlElement element in doc.GetElementsByTagName("target")) { NAntTarget nantTarget = new NAntTarget(); nantTarget.ParseAttributes(element); if (nantTarget.Name == _defaultTargetName) nantTarget.Default = true; Targets.Add(nantTarget); } Targets.Sort(); }