Thanks, I'll check out nodeiterator
The first two values, start1, end1 are from the main datasource. The user picks a start & end date from dropdown lists - start1/end1 are non-repeating.
Start2 and end2 are from the secondary datasource and are repeating.
When the user picks a start & end time, I am wanting to take those values and compare them to the secondary datasource.
So if the user picked a time that overlaps with a start/end in the secondary datasource, infopath will tell them so through validation, switching view, etc.
Edit: Actually, I'm not sure xpathnodeiterator and checking against the secondary datasource will be the way to go. I'm assuming if I do this that means I'll be retreiving the entire list every time someone opens the form, killing performance (right?). Should I be using the Sharepoint API to iterate through the list items instead so it's processed on the server? What do you think?
Thanks!