[Addresses #49798515]Added functionality to go from models to xml

Allows for people to build up the required parameters without having to
deal with XML directly.  The models act more like models from ActiveRecord.

Added tests to show how this is done and added example methods for how to
build up each of the individual relationships between the parameters.