使用dom4j:Document doc = DocumentHelper.createDocument();
doc.addProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"tmpl.xsl\"");
System.out.println(doc.asXML());
doc.addProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"tmpl.xsl\"");
System.out.println(doc.asXML());
解决方案 »
- 很急...struts2里action传送一个对象过去,在jsp中怎么输出该对象的属性
- 文本框数字格式问题
- 正则表达式的问题
- 简单问题,HQL查日期为空的记录
- IIS和TOMCAT整合的服务器中,修改TOMCAT的主目录老是不行?????
- hibernate高手进,Criteria查询遇到的问题
- 请教一个关于Tomcat的公共库文件的问题。
- VSS是垃圾,CVS更是垃圾!
- Java web项目更新后如何发布到tomcat
- spring+hibernate+jpa 启动报错,Invocation of init method failed; nested exception is
- 急啊!!!!数据层中无法实例化WebServices中的Bean对象吗????????
- 关于WebServices中的一句描述(来自书本),不太明白,请解释。
doc.addContent(new ProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"tmpl.xsl\""));
Document mydocument = new Document();
ProcessingInstruction pi = new ProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"tmpl.xsl\"");
mydocument.addContent(pi);