I quickly knocked the eg xml as an example - the SWITCH_NAME_1 is really a placeholder for x number of elements created per switch device. I have yet to determine which is the best method to use to create the elements based on values I have in the database