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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:27:12+00:00 2026-06-13T09:27:12+00:00

When i try to format a xml file in eclipse it puts each of

  • 0

When i try to format a xml file in eclipse it puts each of the fields on a new line. instead i want each property to be on one line. for e.g. now when i press CTRL+SHFT+F, eclipse formats it like this.

<hibernate-mapping package="com.server.entities">
<class
    name="Branch"
    table="Branch"
>
    <meta attribute="sync-DAO">false</meta>
    <id name="Id"
        type="java.lang.Long"
        column="id"
    >
        <generator class="native"/>
    </id>

    <property
        name="Created"
        column="created"
        type="timestamp"
        not-null="false"
        length="23"
    />
    <property
        name="LastUpdated"
        column="lastUpdated"
        type="timestamp"
        not-null="false"
        length="23"
    />
    <property
        name="CreatedBy"
        column="createdBy"
        type="java.lang.Long"
        not-null="false"
        length="19"
    />

but what i want is

<hibernate-mapping package="com.kaizen.report.server.entities">
<class name="Branch" table="Branch">
    <meta attribute="sync-DAO">false</meta>
    <id name="Id" type="java.lang.Long" column="id">
        <generator class="native"/>
    </id>

<property name="Created" column="created" type="timestamp" not-null="false" length="23"/>
  • 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-13T09:27:12+00:00Added an answer on June 13, 2026 at 9:27 am

    If you’re using the XML Editor from eclipse.org, go tot he XML Editor preference page and change the options to allow much longer lines and to not split multiple attributes each onto new lines.

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

Sidebar

Related Questions

I'm trying to transform one XML format to another using XSL. Try as I
I have an xml file for which I try do display some informations into
I try to parse articles from wikipedia. I use the *page-articles.xml file, where they
In my application I have a simple XML formatted file containing structured data. Each
I have an xml file which I try to retrieve some information using linq
I am writing some code to parse an xml file of the following format
im trying to format an XML-file so that its possible to open it directly
I am parsing a XML file with a format of: **NOTE: This is a
I'm generating an utf-8 XML file using XDocument . XDocument xml_document = new XDocument(
I want to write in an xml file located under the conf directory of

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.