public IEnumerable <xmlElement> getElementsByType(string typeName) { var nodes = _mapDocument.GetElementsByTagName(typeName); foreach (var node in nodes) { var xml = new xmlElement(); xml._XmlElement = (XmlElement)node; xml.name = xml._XmlElement.Name; yield return(xml); } }
public xmlElement getElementByType(string typeName) { var nodes = _mapDocument.GetElementsByTagName(typeName); foreach (var node in nodes) { var xml = new xmlElement(); xml._XmlElement = (XmlElement)node; xml.name = xml._XmlElement.Name; return(xml); } return(null); }