Beispiel #1
0
        public static string ParseSimpleElement(this XmlTextReader reader)
        {
            var name = reader.Name;

            reader.Advance(XmlNodeType.Text);

            var content = reader.Value;

            reader.Advance(XmlNodeType.EndElement, name);

            return(content);
        }