How to create XML Attributes

Is there a way to generate an empty element with atrributes?

For example <attribute name="key" value="value" /> ?

I am also looking for the answer to this question.

Have you found out @rodneyjt?

Never found answer to this so I was unfortunately not able to use Mockaroo due to attributes being critical to my dataset.