<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ⅴ免费毛片| 久久亚洲2019中文字幕| 亚洲国产午夜中文字幕精品黄网站 | 亚洲小视频在线播放| 国产精品亚洲专区无码牛牛| 最好免费观看高清在线| 成人毛片18岁女人毛片免费看| 亚洲视频免费一区| 无码专区永久免费AV网站| 久久久久久久久免费看无码| 亚洲精品尤物yw在线影院| 亚洲国产高清在线精品一区| 午夜免费国产体验区免费的| 24小时日本韩国高清免费| 免费va在线观看| 亚洲一区视频在线播放| 亚洲尤码不卡AV麻豆| 亚洲va久久久噜噜噜久久天堂| 日韩亚洲人成在线| 嫩草影院在线播放www免费观看 | 成人免费乱码大片A毛片| 无人在线观看完整免费版视频| 国产亚洲一区二区在线观看| 亚洲的天堂av无码| 亚洲AV无码国产一区二区三区| 免费无遮挡无码永久视频| 亚洲精品无码日韩国产不卡?V| 亚洲人成图片网站| 日韩在线永久免费播放| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 黄页网站在线观看免费| 国产婷婷成人久久Av免费高清 | 亚洲色成人WWW永久网站| 亚洲欧美第一成人网站7777| 日韩一级片免费观看| 午夜性色一区二区三区免费不卡视频| 国产一区二区三区在线免费 | 亚洲第一网站免费视频| 亚洲精品字幕在线观看| 国产精品亚洲专区一区| 日本妇人成熟免费中文字幕 |