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

I need to transform an xml-structure into a text string using xslt. I have
I need to transform an XML file with XSLT, and this task is kinda
I have an XML file that I need to transform using an XSL script.
I am using xslt to transform an xml document to html for use in
I have a following XML structure that I need to transform: <recordset rowCount=68 fieldNames=ITEM,ECL,LEAD_TIME
I need to transform XML using xslt. Logic: Split the parent if the parent
I need to use the result of a javax.xml.transform.Transformer as an input to another
For XSLT transformation I need a javax.xml.transform.stream.StreamSource object representing xml file being transformed. I
Suppose I have the following xml, what xsl do I need to transform the
I have xml/rdf file which I get from service. So, I need to transform

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.