/// <summary> /// <p> /// This returns a <code>NodeList</code> of all the child elements /// nested directly (one level deep) within this element with the given /// local name and belonging to the given Namespace, returned as /// <code>Element</code> objects. If this target element has no nested /// elements with the given name in the given Namespace, an empty List /// is returned. The returned list is "live" in document order /// and changes to it affect the element's actual contents. /// </p> /// <p> /// Please see the notes for <code>{@link #getChildren}</code> /// for a code example. /// </p> /// </summary> /// <param name="name">local name for the children to match</param> /// <param name="ns"><code>Namespace</code> to search within</param> /// <returns>all matching child elements</returns> public virtual IList GetChildren(System.String name, String ns) { XmlNodeList xnl = base.ChildNodes; NodeList nl = new NodeList(); foreach (Object o in xnl) { if (o is AnakiaXmlElement) { AnakiaXmlElement element = (AnakiaXmlElement)o; if (element.LocalName.Equals(name) && element.NamespaceURI.Equals(ns)) { nl.Add(o); } } } return(nl); }
public override XmlElement CreateElement(string prefix, string localname, string nsURI) { AnakiaXmlElement element = new AnakiaXmlElement(prefix, localname, nsURI, this); return element; }
public override XmlElement CreateElement(string prefix, string localname, string nsURI) { AnakiaXmlElement element = new AnakiaXmlElement(prefix, localname, nsURI, this); return(element); }