title: Preventing XSS attacks in Jersey with XML Content-Type
body: <p>I am having Jersey REST service with Content-Type as JSON. For this I have used AntiSamy to filter XSS attacks.</p>
  
  <p>Now I need to support XML Content-Type, AntiSamy considers XML as a threat and all my requests are thrown as attack.</p>
  
  <p>How to support XML as a Content-Type and avoid XSS attacks (filtering)? Thanks</p>