Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:03:56+00:00 2026-05-30T11:03:56+00:00

I have a xml document ~10mb in size. It has relatively simple structure but

  • 0

I have a xml document ~10mb in size. It has relatively simple structure but has alot of binary data in it. I need to get data from it and save it in db.
Tried jaxb metro – works really slow.
I am currently trying jibx for this but unmarshalling a couple of xml docs uses all jvm memory – heap space error – db gets corrupted.
Maybe i should use something else for reading xmls? please, give some advice.

Edit
My xml represents sort of a message, with information like “to”, “from”, etc, just strings ints and dates. Biggest part are attached files in byte[], each attachment in its own element. Maybe its possible to load those one by one?
I really don’t what i should do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:03:58+00:00Added an answer on May 30, 2026 at 11:03 am

    You could use stax, it’s a good answer for quickly ingesting/generating xml. It’s part of jvm now, very simple to use. You will like it :-).

    The thing is that you manage clearly each element and attibute as you are reading the file. You do a loop on the elements (start/end) and get easy access to their attributes. It gives you precision on what you want to do. Also not everything is loaded in memory as in DOM.

    There are a lot of tutorials online. Here is the first page about it I found on the oracle web site.
    http://docs.oracle.com/javaee/5/tutorial/doc/bnbem.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have xml document in variable (not in file). How can i get data
I have an xml document object that I need to convert into a string.
I have XML document which is something like <X><Y><Values><double>1.0</double><double>2.0</double></Values>... I am trying to get
I have an XML document that I need to load and in the document
I have an XML document that has dates in standard ISO 8601 format. Like
I have an xml document, that has a list of categories: <categories> <category id=1
I have a XML document which contains around 4000 entries of data. The data
I have a xml document that has a record set like this. <document> <row>
I have an XML document that has several <item> elements. Inside each, there might
I have an XML document with following structure: root element DataModel can have children

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.