Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

by marto (Archbishop)
on Nov 17, 2011 at 09:30 UTC ( #938561=note: print w/replies, xml ) Need Help??

in reply to which is the best way to convert xml to GraphML using perl.

"But yEd graph editor is not support to xml, so I need to convert XML into GraphML file then I can use that GraphML format in yEd graph editor."

Firstly yEd states:

"yEd can import data in various formats to generate diagrams out of it. Import formats include the Microsoft Excel .xls format for spreadsheet data, the Gedcom format for genealogical data, and also arbitrary XML-based file formats, which are transformed by means of XSLT stylesheets. Predefined XSLT stylesheets provided by yEd can process the Apache Ant build script format used to define dependency information in software build processes and the OWL file format for the description of ontologies. Other XML-based data is processed in a generic way."

I suggest you confirm this, and test to see if your XML can be used as an input. Had you super searched you'd have found nodes where people claim to have used yEd with XML, I dare say a google search would also be helpful.

Secondly, since you came to the conclusing that yEd didn't support xml, why did you choose it as the product to use in the first place?

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

Replies are listed 'Best First'.
Re^2: which is the best way to convert xml to GraphML using perl.
by veerubiji (Sexton) on Nov 17, 2011 at 11:13 UTC

    sorry, I posted little bit confusing, Actually my problem is I have the input format as xml and I need to represent in model graph so I chosen yEd graph editor, It import xml data and displaying tree structured graph, I need to display in some other way so I need to convert it into GraphML. GraphML is the native format for yEd so I am trying like that.Can you suggest which perl module is good doing this.

      So your strategy, is to ignore all questions put to you, and simply repeat your original question, in a slightly more verbose way?

      Sure, the answer is, any one of these (and more): XML::Twig, XML::LibXML, XML::Rules, xsh, Graph::Easy::As_graphml

      There are tons of docs, tons of examples included, lots of examples at perlmonks...

      I suggest you actually use the sites super search facility, or try a google search. You've posted several questions recently relating to XML. IMHO you should make some effort to search for solutions.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938561]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2018-06-25 16:47 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (127 votes). Check out past polls.