Use large XML/XSL content

Fixed the NullPointerException when sending large XML or XSL content.