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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:15:12+00:00 2026-05-17T02:15:12+00:00

I need to transform a XML. Usually I would use Saxon and a XSLT

  • 0

I need to transform a XML. Usually I would use Saxon and a XSLT 2.0 stylehsheet for this. The transformations I have to do involve side-effects and are stateful and manipulate the contens of nodes, so implementing a XPath function doesn’t make that much sense.

I decided to implement a transformer class for this purpose. I found javax.xml.transform provides a standard interface for this, but is targeted towards implementing a XSLT processor (it requires a TransformerFactory and Transformer for each transformation) and seems complex and unnecessary for my purpose.

Is there a general XML (DOM) transformation interface which I could use instead of inventing my own?

  • 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-17T02:15:13+00:00Added an answer on May 17, 2026 at 2:15 am

    The javax.xml.transform interface is the standard means in Java for performing an XSLT transform on an XML document. Since it does not appear that your transform will be XSLT based, this is not the correct API for you.

    Programmers occassionally implement their own versions of Source and Result to hook into standard javax.xml.transform transformers, but this is not your use case.

    Is there a particular API you are hoping to integrate with? If not you will be better off desigining your own API.

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

Sidebar

Related Questions

Hi I am usually programming in c++ so XML/XSL/XPATH is not my strong side,
I need to transform a valid XML document to the OFX v1.0.2 format .
I need to transform an XML file to another XML file, where the source
I need to transform the following xml doc: <a> <b/> <c/> myText </a> into
I need to transform the incoming XML so that I can extract all item
I am having some problems with an XML transform and need some help. The
I have numerous XML files that are organized into different directories. I need to
I need to transform an Oracle SQL statement into a Stored Procedure therefore users
I need to create a data transfer object, which I will use for storing
I have a bunch of files that I need to be able to transport

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.