string.equals(any instance of a repeating element) - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » string.equals(any instance of a repeating element) Use our Google Custom Search for best site search results. string.equals(any instance of a repeating element) Last post 04-10-2012 02:51 PM by Hilary Stoupa. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 04-10-2012 01:13 PM Lockdown Joined on 07-20-2011 Arizona Posts 73 string.equals(any instance of a repeating element) Reply Contact I am struggling for the equation or expression to compare a string with any element of a repeating element. If any one could help me out here that would be amazing! Using C#. 04-10-2012 02:17 PM In reply to Lockdown Joined on 07-20-2011 Arizona Posts 73 Re: string.equals(any instance of a repeating element) Mark as Not AnswerMark as Answer... Reply Contact I am able to compare the value of the first instance of the repeating element but I need to compare all instances of it to a string main.SelectSingleNode("xpath").Value.Equals(line.Substring(3, 3))) 04-10-2012 02:51 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 12,968 Re: string.equals(any instance of a repeating element) Mark as Not AnswerMark as Answer... Reply Contact Just XPath would do this, right? Like, for an XPathNodeIterator, you could use a filtered XPath to get back the correct instances - or am I oversimplifying what you are trying to do? Hilary Stoupa Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.
I am struggling for the equation or expression to compare a string with any element of a repeating element.
If any one could help me out here that would be amazing!
Using C#.
I am able to compare the value of the first instance of the repeating element but I need to compare all instances of it to a string
main.SelectSingleNode("xpath").Value.Equals(line.Substring(3, 3)))
main.SelectSingleNode(
Just XPath would do this, right? Like, for an XPathNodeIterator, you could use a filtered XPath to get back the correct instances - or am I oversimplifying what you are trying to do?