/// <summary> /// Moves to the node that has an attribute of type ID whose value matches the specified string. /// </summary> /// <param name="id">A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.</param> /// <returns>true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.</returns> public override bool MoveToId(string id) { InternalTrace("id=" + id); HtmlNode node = /*CurrentDocument.DocumentNode.*/ CurrentNode.DescendantsAndSelf().FirstOrDefault(x => x.Id == id); if (node == null) { InternalTrace(">false"); return(false); } _currentnode = node; InternalTrace(">true"); return(true); }