<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

    主站蜘蛛池模板: 亚洲性线免费观看视频成熟| a视频免费在线观看| 曰批免费视频播放免费| 亚洲欧洲无码AV电影在线观看 | 久久99亚洲综合精品首页| 亚洲AV无码资源在线观看| 亚洲福利视频网址| 性xxxx视频免费播放直播| 亚洲视频精品在线| 四虎在线成人免费网站| 中文字幕在线观看亚洲视频| 亚洲国产精品无码久久久不卡| 亚洲国产精品一区二区第一页免 | 黄网站在线播放视频免费观看| 亚洲国产精品不卡在线电影| 久久久久国产成人精品亚洲午夜| 女人被免费视频网站| 大桥未久亚洲无av码在线| 亚洲成AV人片在线观看WWW| 在线观看亚洲天天一三视| 亚洲成A∨人片天堂网无码| 亚洲AV中文无码乱人伦| 亚洲精品国产福利一二区| 亚洲一区二区三区国产精品| 中文字幕亚洲图片| 午夜亚洲AV日韩AV无码大全| 亚洲国产精品yw在线观看| 国产v亚洲v天堂a无| 杨幂最新免费特级毛片| 中文字幕看片在线a免费| 91精品国产免费| 性做久久久久免费观看| 亚欧免费无码aⅴ在线观看| 无限动漫网在线观看免费| 韩国18福利视频免费观看| 国产午夜亚洲精品理论片不卡| 亚洲精品福利视频| 色婷婷精品免费视频| 免费国产黄网站在线观看视频| 日韩精品视频免费在线观看| 亚洲午夜久久久影院伊人|