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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:43:18+00:00 2026-06-01T10:43:18+00:00

I am trying to parse an XML file in java, after I have to

  • 0

I am trying to parse an XML file in java, after I have to represent it as a tree using Jframe like thisenter image description here

  • 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-01T10:43:19+00:00Added an answer on June 1, 2026 at 10:43 am

    Trees are generally one of the easier linked constructs to lay out like this, because paths generally don’t “merge” or “cross”.

    You can approach it in a roughly tabular way by traversing the tree “left to right”: start at the root, and draw its representation at the top left of the area. Then, traverse its “left” branch one level at a time, drawing those nodes’ representations on successively lower “rows”, in the same “column” as the root. Then, as you move to the “right”-side nodes, draw that node in the next “column” available to the right on the same level. This will produce a ramp-shaped graph of the tree’s structure.

    You can add some pre-analysis of the number of levels and nodes at each level, which will allow you to “center” the tree into a rough pyramid shape by knowing the maximum number of levels the graph will require and the number of nodes at each level of that graph. But, that requires traversing the entire graph before you start drawing anything.

    As for “arranging” a tree’s nodes so they fit in the smallest area without arrows crossing or overlapping, that’s a problem with a scope far exceeding the average SO answer.

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

Sidebar

Related Questions

I'm trying to parse an xml file with PHP. I'm using this code and
I am trying to parse an XML file in Java and after getting the
I am beginner in PHP. I am trying to parse this xml file. <relationship>
I have an XML file that I'm trying to parse with Linq-to-XML. One of
I'm trying to parse xml done like this: <foreign lang=gre>&lsquo;<LM lemma=auieo catg=fg>auieo</LM>&rsquo;</foreign> I'm using
I am trying to parse the following XML file in Java and to store
I have an xml file I'm trying to parse and it is UTF-16 encoded.
I have an xml configuration file which works fine in Java, and I'm trying
hi i am trying to parse an xml file using SAXparser. I followed the
looks like I need help again! :-/ Im trying to read this XML file

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.