当前位置:编程学习 > XML/UML >>

文档抽象模型xml,xml解析生成pdf,word文档

<?xml version="1.0" encoding="UTF-8"?>
<document>
    <station title="stationParse" flag="true">
        <pargh font="chineseOne">
            <content><![CDATA[站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点
            能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析。]]>
            </content>   
        </pargh>
        <table row="2" cell="3" align="left">
            <tr>
                <td><![CDATA[站点能耗分析站1.]]></td>
                <td><![CDATA[站点能耗分析站2.]]></td>
                <td><![CDATA[站点能耗分析站3.]]></td>       
            </tr>
            <tr>
                <td><![CDATA[站点能耗分析站4.]]></td>
                <td><![CDATA[站点能耗分析站5.]]></td>
                <td><![CDATA[站点能耗分析站6.]]></td>       
            </tr>   
        </table>
        <image algin="left">
            <imagepath><![CDATA[D:\\图片\\2.jpg]]></imagepath>   
        </image>
        <items font="chineseOne">
            <item><![CDATA[站点能耗分析站1.]]></item>       
            <item><![CDATA[站点能耗分析站2.]]></item>
            <item><![CDATA[站点能耗分析站2.]]></item>   
        </items>
    </station>
    <fangan title="stationParse" falg="false">
        <pargh font="chineseOne">
            <content><![CDATA[站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点
            能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析
            站点能耗分析站点能耗分析站点能耗分析站点能耗分析站点能耗分析。]]>
            </content>   
        </pargh>
        <table row="2" cell="3" align="left">
            <tr>
                <td><![CDATA[站点能耗分析站1.]]></td>
                <td><![CDATA[站点能耗分析站2.]]></td>
                <td><![CDATA[站点能耗分析站3.]]></td>       
            </tr>
            <tr>
                <td><![CDATA[站点能耗分析站4.]]></td>
                <td><![CDATA[站点能耗分析站5.]]></td>
                <td><![CDATA[站点能耗分析站6.]]></td>       
            </tr>   
        </table>
        <image algin="left">
            <imagepath><![CDATA[D:\\图片\\2.jpg]]></imagepath>   
        </image>
        <items font="chineseOne">
            <item><![CDATA[站点能耗分析站1.]]></item>       
            <item><![CDATA[站点能耗分析站2.]]></item>
            <item><![CDATA[站点能耗分析站2.]]></item>   
        </items>
    </fangan>
</document>
package com.isoftstone.impl.doc;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.ArrayList;
import com.isoftstone.domain.doc.Field;
import com.isoftstone.inter.doc.createDocument;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie

补充:软件开发 , C++ ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,