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 7559491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:39:07+00:00 2026-05-30T12:39:07+00:00

I´m researching how to transform XML from one format to another in a Java

  • 0

I´m researching how to transform XML from one format to another in a Java project.

What alternatives are there and what are their pros and cons?

Alternatives I´ve found so far:

  1. XSLT/XQuery
  2. XML-binding both formats to Java and do the mapping in Java
  3. Groovy
  • 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-30T12:39:08+00:00Added an answer on May 30, 2026 at 12:39 pm

    If you’re transforming XML to XML, then you’ll only make extra work for yourself if you go via a non-XML representation (such as Java objects). Using a high-level declarative language is the way to go, and that means XSLT or XQuery.

    In choosing between XSLT and XQuery, my usual advice is that XSLT is optimized for transformation and XQuery is optimized for query. By “transformation” I mean tasks in which most of the input appears in the output, just in a different form. By “query” I mean extracting nuggets of information from a sea of data.

    Of course, all these technologies have a learning curve, and if you have a small one-off job to do, then that can be a valid factor in choosing your tools. But the best advice for a project doing XML and Java is to do as little Java as possible. Thinking about it as “a Java project” is probably a bad starting position.

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

Sidebar

Related Questions

Been researching how to send data from one child view to another child view.
After researching this issue for a couple of hours, I found that one of
On researching another question I noted that the stat function in Perl can take
While researching the issue of JSON vs XML , I came across this question
I've been researching memory mapped files for a project and would appreciate any thoughts
In researching MVC 3 archetectures, one thing I've seen consistently is the concept of
I was just researching how can I reverse a String. I found a Program
While researching how to do cross-platform printf() format strings in C (that is, taking
After researching my options with regards to video support in Java, I stumbled across
Researching I found that javax.persistence.ManyToMany relationship can be implemented various collection. I wonder if

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.