GetElementChild() public static method

Return the first element child of the specified node that has the specified name. If no such child exists, then do not set pageNode or idxNode and return false. Assume that the localName has been atomized with respect to this document's name table, but not the namespaceName.
public static GetElementChild ( XPathNode &pageNode, int &idxNode, string localName, string namespaceName ) : bool
pageNode XPathNode
idxNode int
localName string
namespaceName string
return bool
Ejemplo n.º 1
0
        /// <summary>
        /// Move to the first element child of the current node with the specified name.  Return false
        /// if the current node has no matching element children.
        /// </summary>
        public override bool MoveToChild(string localName, string namespaceURI)
        {
            if ((object)localName != (object)_atomizedLocalName)
                _atomizedLocalName = (localName != null) ? NameTable.Get(localName) : null;

            return XPathNodeHelper.GetElementChild(ref _pageCurrent, ref _idxCurrent, _atomizedLocalName, namespaceURI);
        }
Ejemplo n.º 2
0
 public override bool MoveToChild(string localName, string namespaceURI)
 {
     if (localName != this.atomizedLocalName)
     {
         this.atomizedLocalName = (localName != null) ? this.NameTable.Get(localName) : null;
     }
     return(XPathNodeHelper.GetElementChild(ref this.pageCurrent, ref this.idxCurrent, this.atomizedLocalName, namespaceURI));
 }