Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
        }