Exemplo n.º 1
0
        /// <summary>
        /// This method searches the child nodes for nodes with the
        /// name passed.  The method returns an array containing
        /// any such nodes found.
        /// </summary>
        /// <param name="name">The desired node name.</param>
        public XmlNodeArray FindChildren(string name)
        {
            var list = new XmlNodeArray();

            for (int i = 0; i < children.Count; i++)
            {
                if (children[i].Name == name)
                {
                    list.Add(children[i]);
                }
            }

            return(list);
        }
Exemplo n.º 2
0
        private string innerXml = null;             // XML text to render between the open/closing tags.

        /// <summary>
        /// This constructor initializes a node.
        /// </summary>
        public XmlNode()
        {
            this.parent   = null;
            this.props    = new XmlPropArray();
            this.children = new XmlNodeArray();
        }