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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:25:39+00:00 2026-05-25T06:25:39+00:00

I have searched and am looking for a tool which would help when working

  • 0

I have searched and am looking for a tool which would help when working with XML files.
I’ve got to understand different XML structures and it gets quite annoying when I have to draw everything on a paper or model a diagram myself.

I would like to know if anybody has some tool to offer which would help when figuring out XML structures ?

For anyone who doesn’t understand why I need this, imagine this:

<parent id="1"> 
 <name> ... </name>
</parent>
<parent id="2">
 <name> ... </name>
</parent>

<child mother="1" father="2"></child>

In this case, mother and father are set by id in parent element.

And sometimes I have a huge structure which is connected with other nodes in this way(using ID or some string identificator). It sucks to handle this manually and I would like to know if there’s some automatic way to draw a diagram from XML(with minimal input).

Thank you

  • 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-25T06:25:39+00:00Added an answer on May 25, 2026 at 6:25 am

    I know you’re asking for a tool, and you’re tagging your question with UML, but perhaps you’ll like the Graph::Easy module with Perl, just to get a first big view of your XML.

    Here is the sample XML :

    <test>
      <parent id="1"/>
      <parent id="2"/>
      <child id="11" mother="1" father="2"/>
      <child id="10" mother="1" father="2"/>
    </test>
    

    Here is the little script :

    #!/usr/bin/perl -w
    use 5.010;
    use strict;
    use warnings;
    
    use Graph::Easy;
    use IO::All;
    use Path::Class;
    use XML::LibXML;
    
    my $graph   = Graph::Easy->new(timeout => 100);
    my $parser  = XML::LibXML->new();
    my $xmlFile = file('...') # Replace by your path.
    
    my $dom = $parser->parse_file($xmlFile);
    foreach my $childNode ($dom->findnodes('//child'))
    {
        $graph->add_edge
        (
            $childNode->getAttribute('id'),
            $childNode->getAttribute('mother'),
            'has mother'
        );
        $graph->add_edge
        (
            $childNode->getAttribute('id'),
            $childNode->getAttribute('father'),
            'has father'
        );
    }
    
    $graph->as_svg > io("graph.svg");
    

    and the result :

    enter image description here

    That’s just a very simple example, but you can easily go further and add different types of lines, colors, etc. By example :

    enter image description here

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

Sidebar

Related Questions

I have a query which searches two separate fields in the same table... looking
I have searched through the google and also joomla forums but didn't got what
I have searched this web looking for an answer, but it seems that this
I have searched on here and have not found exactly what I am looking
I have searched the Internet, but I can't find the info I'm looking for.
I have searched hi and low for a solution for this, basicly I would
I have searched this site, and numerous others, looking for a solution to this
I have searched, but can not find the answer I'm looking for. I want
I am looking for an extensive list of Spring Interview questions? I have searched
Not a great title but I'm looking more for some guidance, have searched quite

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.