Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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

by marto (Bishop)
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]
[marto]: well, let me know in advance, I'll buy you a pint :)
[Corion]: robby_dobby: No, I'm returning in the second workweek of January. The main hectic parts are in the first days after the start of the new year
[robby_dobby]: marto: and, I'm not sure I'd be around here long enough for YAPC::EU
[marto]: Corion nice, what are you plans for Christmas?
[robby_dobby]: Corion: Nice, you just won't be around to deal with the mess - enjoy your vacation :-)
[robby_dobby]: marto: Sure, will do. Thanks!
[Corion]: marto: No great plans - I'll meet with my sister, my brother and my mother, but that's all :)
[Corion]: ... and also a visit to my godson+family of course :)
Corion orders some gifts online :)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-12-15 10:41 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (431 votes). Check out past polls.