Problems converting from an object to XML in java
<p>What I'm trying to do is to convert an object to xml, then use a String to transfer it via Web Service so another platform (.Net in this case) can read the xml and then deparse it into the same object. I've been reading this article: </p>

<p><a href="http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#start" rel="nofollow">http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#start</a></p>

<p>And I've been able to do everything with no problems until here:</p>

<pre><code>Serializer serializer = new Persister();
PacienteObj pac = new PacienteObj();
pac.idPaciente = "1";
pac.nomPaciente = "Sonia";
File result = new File("example.xml");
serializer.write(pac, result);
</code></pre>

<p>I know this will sound silly, but I can't find where Java creates the new File("example.xml"); so I can check the information.</p>

<p>And I wanna know if is there any way to convert that xml into a String instead of a File, because that's what I need exactly. I can't find that information at the article.</p>

<p>Thanks in advance.</p>
