/// <summary>
/// Locates all the child elements of the given parent <see cref="XmlElement"/>
/// and returns them in a (possibly empty) <see cref="XmlNodeList"/>.
/// </summary>
/// <param name="parent">The parent <see cref="XmlElement"/>.</param>
/// <returns>A possibly empty <see cref="XmlNodeList"/> of child elements.</returns>
public static XmlNodeList GetChildElements(XmlElement parent)
{
MutableNodeList list = new MutableNodeList ();
if (parent != null) {
foreach (XmlNode node in parent.ChildNodes)
if (node.NodeType == XmlNodeType.Element) list.Add (node);
}
return (list);
}