Convertir NSDictionary a XML [duplicado]

Esta pregunta ya tiene una respuesta aquí:

Convertir NSDictionary a XML 3 respuestas

Necesito convertir un diccionario a formato XML para usar con el servicio web SOAP en el objetivo C.

Let the dictionary be {
    password = testpassword;
    username = testusername;
}
 and the converted result i need is : 

<password>testpassword</password>
<username>testusername</username>

i need a specific function to get output like this format for dynamic dictioanry .

many libraries are available but i dont get output like this .

thanks in advance ..

Respuestas a la pregunta(2)

Su respuesta a la pregunta