I agree with Abhishek here, this could probably be done with XPath, but it's going to take 5x the amount of time to figure it out than just using code. If code is not an option, you could, of course, concoct some crazy XSL+XPath to do this.
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge