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

  • SEARCH
  • Home
  • 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 7673329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:29:15+00:00 2026-05-31T16:29:15+00:00

I need to insert, delete and update data using a xml file. I have

  • 0

I need to insert, delete and update data using a xml file. I have heard of some methods like xpath, XStream or JDOM for doing this. I don’t know anything except the names of this methods for use a xml like a database. Which one is easier to learn?

  • 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-31T16:29:16+00:00Added an answer on May 31, 2026 at 4:29 pm

    Databases and XML are rather different beasts. XML is a sequential, document-centric file format, i.e. XML files can not be updated without writing the entire file back to disk. Databases on the other hand allow to efficiently insert, update and delete individual records without touching any other records.

    You can not achieve that property when implementing a “database” using an XML file, so this approach will be very inefficient if you have a non-trivial amount of data, and update only a few records at a time.

    That said, a relatively simple way to map data from and to XML is JAXB. A starting point might be
    Chapter 17 of the Java EE 5 Tutorial. You probably have no need for a schema, and simply annotate the classes you want to write to / read from XML with JAXB annotations.

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

Sidebar

Related Questions

I have a trigger for insert/update/delete. That is working fine. Also, I need the
I need to insert/update data by using link or image I need a code
I have a xml file which contains data I want to insert into a
I need a quick no for DELETE/UPDATE/INSERT, since 3p reporting tool allows users to
I have the following scenario: a table that is accessed (update, delete, insert and
I have this piece of code which I am using to update some values
We have a data model that has some requirements. I would like to find
I have some C#/Linq code used to merge data from excel file into db,
Hi need insert data in table if the record is not already exits Ex:
Need to insert selected text on the page into textarea. There must be some

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.