Allow factory to use list of XML

Just a for loop. Maintain code style and coverage.