There's no easy way of doing that but there might be a way if you're not too picky about character-to-character accuracy.
Since SAX is an event-based API,
you should implement your handler using the following logic:
1) when you encounter the start element for <body>, you switch into "echo mode" and only come out of that mode once the SAX parser hands you a matching closing tag, </body>.
2) when inside this "echo mode", your SAX handler should process the events as follows:
2.1) startElement(...) should reconstruct the starting tag from the given parameters and append that to a StringBuffer somewhere
2.2) characters(...) should append the given characters as-is into the StringBuffer
2.3) endElement(...) should reconstruct the ending tag and append that to the StringBuffer
2.4) ...and so forth for the remaining methods of the SAX handler interface