<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

    主站蜘蛛池模板: 黄色片网站在线免费观看| 亚洲国产91在线| eeuss草民免费| 亚洲精品国产精品乱码不卡| 亚洲色大18成人网站WWW在线播放| 大学生一级毛片免费看| 亚洲av无码一区二区三区天堂古代| 最近中文字幕大全中文字幕免费| 亚洲第一精品在线视频| 亚洲电影免费观看| 亚洲一级毛片视频| 免费无码看av的网站| 噜噜噜亚洲色成人网站| 亚洲国产综合无码一区二区二三区| 丁香花在线观看免费观看图片| 亚洲精品乱码久久久久久中文字幕| 高清一区二区三区免费视频| 亚洲高清视频在线播放| 国产精品成人免费视频网站京东 | 1区1区3区4区产品亚洲| 国产精品免费观看| 激情小说亚洲色图| 狠狠色伊人亚洲综合成人| 51精品视频免费国产专区| 亚洲暴爽av人人爽日日碰| 亚洲综合最新无码专区| 美丽姑娘免费观看在线观看中文版| 亚洲乱码无限2021芒果| 午夜国产大片免费观看| 日韩视频免费在线观看| 亚洲性无码一区二区三区| 中文字幕第一页亚洲| 免费观看黄色的网站| 四虎影视在线看免费观看| 婷婷亚洲久悠悠色悠在线播放 | a一级爱做片免费| 亚洲成人福利在线观看| 亚洲AV中文无码乱人伦| 中文字幕在线免费| 色视频在线观看免费| 亚洲伊人久久大香线焦|