tomcat document xml
来源:互联网 发布:linux移动文件夹命令 编辑:程序博客网 时间:2024/05/16 22:45
try {
TransformerFactory tFactory = TransformerFactory.newInstance();
Source xmlSource = new StreamSource(new StringReader(sb.toString()));
Source xslSource = new StreamSource(xsltInputStream);
Transformer transformer = tFactory.newTransformer(xslSource);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
OutputStreamWriter osWriter = new OutputStreamWriter(stream, "UTF8");
StreamResult out = new StreamResult(osWriter);
transformer.transform(xmlSource, out);
osWriter.flush();
return (new ByteArrayInputStream(stream.toByteArray()));
} catch (TransformerException e) {
throw new ServletException("XSL transformer error", e);
}
出自DefaultServlet之Tomcat
- tomcat document xml
- tomcat document
- A Simple XML Document
- java,document,xml解释
- XML document models
- document解析xml示例
- document解析xml
- document读取xml文件
- document to xml string
- XML DOM Document 对象
- xml转document问题
- java xml Document解析
- java 解析xml-document
- xml dom document与html dom document
- 导入项目启动报错Unexpectedexception parsing XML document from file[H:\software\apache-tomcat-7.0.77\webapps\
- Document Object To XML String
- F# create an XML document
- F# read an XML document
- 模版缓存3
- 虚拟机Ubuntu11.04与host主机windows共享文件夹问题解决方法
- linux-gcc 编译时头文件和库文件搜索路径
- 人际关系要全面的认识。
- linux c/c++ unsigned int i;i永远>=0了
- tomcat document xml
- uva10815 - Andy's First Dictionary
- PHP分页类
- IT“茫一代”:35岁成生死线 无处安放未来
- VS2008单元测试
- 推荐大学生们必须要读的一个博客。可以让你少奋斗10年的工作经验(转)
- 关于sqlserver 主键设置了identity的问题
- 16.2
- 如何快速播放CSF视频文件的办法