Is End XML Element - CSharp System.Xml

CSharp examples for System.Xml:XML Element

Description

Is End XML Element

Demo Code

//   Licensed under the Apache License, Version 2.0 (the "License");
using System.Xml;

public class Main{
        /// <summary>
        /// /*from w w  w  . j a v a2 s .c  o m*/
        /// </summary>
        /// <param name="reader"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        internal static bool IsEndElement(XmlReader reader, string name)
        {
            return
                reader.NodeType == XmlNodeType.EndElement &&
                reader.Name.Equals(name);
        }
}

Related Tutorials