oracle-xml-publisher

HTML tags are getting converted

我们两清 提交于 2019-12-23 16:24:05
问题 I have the following code snippet to have output from XML data which is stored in the database table ServletOutputStream os = response.getOutputStream(); String contentDisposition = "attachment;filename=Test.HTML"; response.setHeader("Content-Disposition",contentDisposition); response.setContentType("text/html"); XMLNode xmlNode = (XMLNode)am.invokeMethod("getDataXML"); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); xmlNode.print(outputStream); ByteArrayInputStream

HTML tags are getting converted

笑着哭i 提交于 2019-12-23 16:21:05
问题 I have the following code snippet to have output from XML data which is stored in the database table ServletOutputStream os = response.getOutputStream(); String contentDisposition = "attachment;filename=Test.HTML"; response.setHeader("Content-Disposition",contentDisposition); response.setContentType("text/html"); XMLNode xmlNode = (XMLNode)am.invokeMethod("getDataXML"); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); xmlNode.print(outputStream); ByteArrayInputStream