Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: which is the best way to convert xml to GraphML using perl.

by Khen1950fx (Canon)
on Nov 17, 2011 at 12:08 UTC ( [id://938605]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -slw
    
    ...
    binmode STDOUT, ':encoding(UTF-8)';
    print $graph->as_graphml();
    close STDOUT;
    
  2. or download this
    
    <?xml version="1.0" encoding="UTF-8"?>
    ...
        </edge>
      </graph>
    </graphml>
    
  3. or download this
    #!/usr/bin/perl -slw
    
    ...
    
    my $parser = Graph::Easy::Parser->new();
    print $parser->from_text('[Bonn]->[Berlin]')->as_ascii();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://938605]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found