How to parse a regular String to an XML file
<p>What I'm trying to do is to parse an object into a String, and then , parse it into an XML so any other language can translate it. </p>

<p>Figure out this object:</p>

<pre><code>public class DatosPac 
{
private String nombre;
private String apellidos;
private String dni;
public String getNombre() {
    return nombre;
}
public void setNombre(String nombre) {
    this.nombre = nombre;
}
public String getApellidos() {
    return apellidos;
}
public void setApellidos(String apellidos) {
    this.apellidos = apellidos;
}
public String getDni() {
    return dni;
}
public void setDni(String dni) {
    this.dni = dni;
}   
}
</code></pre>

<p>What I want to do is, parse it into a common XML between Android and .Net so both languages can translate the same object. The way to communicate both languages will be using Web Services, so the Web Service will receive a String, transalte it into the object and then use the information. Bidirectionally. I mean, Android will be able to receive an object parsed from .Net, and .Net will be able to receive the same object from Android. To be able to do this, I think I need to convert them into the same XML, but I don't know how to do it in Android.</p>

<p>Thanks in advance.</p>
