如何用jdom生成office生成的xml文件
注意,是生成!!!xml文件样式如下所示,
<FILEREF>
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<s:Schema id="RowsetSchema">
<s:ElementType name="row" content="eltOnly" rs:updatable="true">
<s:AttributeType name="Authority_No" rs:number="1" rs:write="true">
<s:datatype dt:type="string" rs:dbtype="str" dt:maxLength="50" rs:precision="0" rs:maybenull="false" />
</s:AttributeType>
<s:ElementType>
<xml>
</FILEREF>
注意,是生成!!!xml文件样式如下所示,
<FILEREF>
<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<s:Schema id="RowsetSchema">
<s:ElementType name="row" content="eltOnly" rs:updatable="true">
<s:AttributeType name="Authority_No" rs:number="1" rs:write="true">
<s:datatype dt:type="string" rs:dbtype="str" dt:maxLength="50" rs:precision="0" rs:maybenull="false" />
</s:AttributeType>
<s:ElementType>
<xml>
</FILEREF>
解决方案 »
- ajax json
- 送分咯,解决问题继续加分
- xml实现无刷新数据检索
- 使用prototype.js实现类似google搜索功能
- struts logic:iterate标签的使用问题!
- java 修改 img 的图片路径
- struts 初级问题
- mysql的longBlob字段经hibernate向导生成的数据成员变成了String类型而不是java.sql.Blob
- 用ecplpse构建ejb 出现以下错误
- java.rmi.RemoteException: EJB Exception: ; nested exception is:是什么错误!!!
- 怎么修改tomcat默认项目?
- 如何用jdom生成office生成的xml文件
如果不了解的话, 还是用api吧.
比如apache的poi.
用这个吧:
http://openxml4j.org/因为office 2007的XML已经是标准,所以这方面的API也逐渐成熟了:OpenXML4J is a Java library dedicated to the creation and manipulation of Office Open XML (ECMA-376) and OPC based documents (for example Office 2007 Word, Excel and PowerPoint documents). OpenXML4J provides you a way to create and manipulate Open XML documents for a bunch of scenarios without using any office suite.