title: How to apply xsl to xml in Java
body: <p>This is problaby been asked a bunch of times, but I didn't really find what I was looking for exactly.
  I don't normally code in Java, but in C# so I am not comfortable with Java classes and such.</p>
  
  <p><strong>Question</strong></p>
  
  <p>I need to create a method that takes 2 paramaters.
  1. A string parameter (the xml - so needs to be converted to some xml class) 
  2. A string parameter with the xsl file path location</p>
  
  <p>The thing is I am making a factory class that must convert xml from a webservice into xml that my system can understand. I need a nice solution for that.
  Every method on the ws will have a xsl file - both the request (convert my xml to something that the ws understands) and the response (convert to something that my system understands).</p>