<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    paulwong

    大對象XML讀寫

    I am using JAXB and I have a large set of data which i have to marshal into a xml.Since marshalling the whole thing into xml in a single step will be using most of the memory , i want to split it into parts and write to the xml file incremently

    For example if my generated output xml should be like this:
    <Employees>
    <employee>......</employee>
    <employee>.....</employee>
    <employee>.....</employee>
    <employee>.....</employee>
    ..
    ...
    ..
    </Employees>

    I would like to write the <employee> sections separately into a file instead of writing the whole thing together.I am retrieving the employee details from the database and converting to xml.There are almost 8 lakh records.So marshalling the whole thing in single step will use up my memory.How can i do it?????


    Use Stax API (XMLStreamWriter) as the underlying XML processing thing;
    write <Employees> tag using that, and then pass XMLStreamWriter to
    JAXB Marshaller, marshall employee by employee.
    This is the pattern I use; similarly works well with unmarshalling.
    Not sure if this is in FAQ or not, but it probably should be. 

    posted on 2013-04-12 19:18 paulwong 閱讀(271) 評論(0)  編輯  收藏 所屬分類: J2SE

    主站蜘蛛池模板: 亚洲国产精品无码久久久久久曰| 青青视频免费在线| 久久久影院亚洲精品| 亚洲成A∨人片在线观看不卡| 国产成人亚洲精品狼色在线| 亚洲伊人久久综合中文成人网| mm1313亚洲精品无码又大又粗| 亚洲国产午夜福利在线播放| 亚洲人妻av伦理| 久久久久亚洲精品无码网址| 综合亚洲伊人午夜网| 亚洲国产精品无码久久SM| 久久久亚洲欧洲日产国码农村| 久久精品亚洲中文字幕无码麻豆| 久久久无码精品亚洲日韩京东传媒 | 亚洲AV日韩AV永久无码免下载| 亚洲精品免费在线观看| 亚洲第一成年网站大全亚洲| 亚洲视频无码高清在线| 亚洲AV成人无码网天堂| 免费精品视频在线| 中文成人久久久久影院免费观看 | 久久国产精品免费一区| 久久国产乱子免费精品| 蜜桃AV无码免费看永久| 成人毛片视频免费网站观看| 国产精品免费视频播放器| 亚洲精品99久久久久中文字幕| 亚洲AV无码一区二区三区DV| 亚洲精品在线免费观看| 亚洲av色香蕉一区二区三区 | 亚洲福利一区二区精品秒拍| 亚洲中文字幕乱码一区| 免费人人潮人人爽一区二区| 日韩精品在线免费观看| 国产精品视频免费一区二区| 亚洲精品久久久www| 亚洲国产精品第一区二区| 亚洲乱码无人区卡1卡2卡3| 一本久久A久久免费精品不卡| 777成影片免费观看|