<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 閱讀(273) 評論(0)  編輯  收藏 所屬分類: J2SE

    主站蜘蛛池模板: 水蜜桃亚洲一二三四在线| 亚洲精品理论电影在线观看| 3d动漫精品啪啪一区二区免费| 亚洲精品中文字幕乱码| 永久免费看bbb| a成人毛片免费观看| 亚洲一卡2卡3卡4卡乱码 在线| 亚洲男人在线无码视频| 久久国产精品成人片免费| 国产精品无码亚洲精品2021| 亚洲色偷偷偷鲁综合| 成人毛片免费观看| 日韩精品无码免费专区午夜不卡| 亚洲午夜精品一区二区公牛电影院 | 久久成人国产精品免费软件| 色综合久久精品亚洲国产| 国产AV无码专区亚洲Av| 免费高清在线爱做视频| 日韩免费高清大片在线| 杨幂最新免费特级毛片| 亚洲ts人妖网站| 亚洲AV无码一区二区三区系列 | 亚洲理论电影在线观看| 四虎成人精品一区二区免费网站| 人妻免费一区二区三区最新| 一本色道久久88亚洲精品综合 | 亚洲国产精品免费观看 | 视频一区在线免费观看| 亚洲欧洲春色校园另类小说| 国产精品亚洲w码日韩中文| 毛片A级毛片免费播放| 99热在线观看免费| www.xxxx.com日本免费| 亚洲AV无码一区二区三区性色 | 在线免费观看国产| 国产精品免费看久久久香蕉| 亚洲AV日韩AV永久无码色欲| 亚洲日本国产乱码va在线观看| 国产精品亚洲一区二区三区在线 | 日本牲交大片免费观看| 最近在线2018视频免费观看|