If you're working with InfoPath 2010, you can probably use a REST connection to one of the XML files. REST connection URLs can be changed dynamically using just rules.
If that doesn't work, another option is to use an XML data connection and qRules' ChangeConnectionUrl command to redirect it to different places.