I have the following response in form of string and want to remove headers Content-Type and Content-Length from that string so that the resulting string has only xml data starting from < ?xml version ... upto < /Product>. How to do this in java.
Content-Type: application/xml
Content-Length: 107
<?xml version = "1.0" encoding = "UTF-8" ?>
<Product>
<Id>11001</Id>
<Time>2012-06-09 14:18:22</Time>
</Product>