title: parsing HTML to a string in Java
body: <p>I have to get an email's content (HTML format) and save it to a string which then should be parsed to get the required details and to prepare an XML output.</p>
  
  <p>I am using JAMES and i want it to be done in Java. How can I dump the HTML page into a string? Do you think I won't get any problem with the double inverted commas, spaces, backward slash while parsing?</p>
  
  <p>Now i am testing mailserver on my localsystem.
  I sent a mail from user1@localhost to user2@localhost in format HTML
  At the other end i want to convert the parse HTML page to create an XML document with the desired values .. </p>