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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:53:06+00:00 2026-06-12T03:53:06+00:00

I am asking a follow-on question to help the OP from a SuperUser question

  • 0

I am asking a follow-on question to help the OP from a SuperUser question which evolved into a programming question.

As you can see from the screenshots of Eclipse in my answer to that SU question, Eclipse has a robust and configurable engine for formatting XML (I’m using Eclipse Juno release, by the way).

The OP of the SU question chose Eclipse’s XML engine as their preferred method of tidying their XML. Unfortunately, the OP prefers to work on the command line, and would like to capture the same functionality from Eclipse’s XML formatting engine and make it run as a simple headless program that can be called from, e.g. bash.

I am aware that Eclipse is extremely modular and extensible, so my intuition tells me that Eclipse would not tightly couple the functionality behind the XML engine with the UI. So, I think that there is some OSGi module in Eclipse that implements only the XML processing routines as a headless I/O interface rather than being coupled to the Eclipse runtime. It’s perfectly fine if this interface depends on other parts of Eclipse, as long as it doesn’t mandate starting up the Rich Client Platform and a GUI. I’m looking for a headless solution.

At which layer of the Eclipse stack would I be able to access this interface, in order to design a command line program that, essentially, accepts an XML file and a list of formatting preferences similar to the ones in the Eclipse Preferences pane (but specified as command-line arguments) and produces the formatted XML as output?

After some reading online, I think the XML source editor in Eclipse Juno is implemented in WST, but I don’t know how to separate out the parts of WST that are unrelated to this project or which have GUI functionality, so that I can only call into the headless “engine” classes that actually do the XML parsing and modifying.

This question is not about how to use the interfaces in question. It’s just that the Eclipse platform is so huge that merely discovering the existence of the library interface that I need is a challenge in and of itself, hence this question. Once I find an API that is situated at the right level of abstraction for this task, I will be able to learn about the API from the documentation and write the program without much further help.

  • 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-06-12T03:53:07+00:00Added an answer on June 12, 2026 at 3:53 am

    The XML formatter is in the “org.eclipse.wst.xml.core” plugin.

    org.eclipse.wst.xml.core.internal.formatter.XMLFormatterFormatProcessor
    

    The plugin uses the extension point “org.eclipse.wst.sse.core.formatProcessors” to make it available.

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

Sidebar

Related Questions

Im asking to see if anyone could help me with my problem which is
This is a follow up question from Grammar: difference between a top down and
I asked from few weeks ago this question: How can I teach a beginner
Yet another TFrame IDE-registered-component question from me. Thanks for all the help, fellow programmers.
This is a follow up on a question asking for an explanation of REST
This is a follow up to my other question . I am asking again
Two questions: how can I write a shell variable from this script into its
Asking for your help on this Oracle query. It's giving me the error 2
Before asking the question let me preface with the fact that I am new
Before asking my question, let me explain the context. CONTEXT: I have a web

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.