Just note that that code will specifically create the XML you posted. Obviously you'll need to generalise the code to handle the general case. For instance, you have multiple 'plugin' elements so you would need to use a loop to create them. You also have multiple 'computer' elements so you'd need to nest another loop to create them.