How can I create xml with attributes? for example, to generate this ``` <?xml version="1.0"?> <root> <element>value</element> <nested_element attribute="attribute_value">nested_value</nested_element> </root> ```