hunglduc Posted April 28, 2009 Share Posted April 28, 2009 i have a .dot file. now i want to convert .dot file to xml file. and with xml file. i want to convert xml to dot, xml to html, xml to excel. can u please help me and give me some instruction to do it Link to comment Share on other sites More sharing options...
boen_robot Posted April 28, 2009 Share Posted April 28, 2009 What is a .dot file? What does it contain? In what kind of an XML file you want it (after all, XML can take many forms)? Link to comment Share on other sites More sharing options...
hunglduc Posted May 3, 2009 Author Share Posted May 3, 2009 i have a .dot file. now i want to convert .dot file to xml file. and with xml file. i want to convert xml to dot, xml to html, xml to excel. can u please help me and give me some instruction to do it.dot file to create graph. u can access to site http://www.graphviz.org/ to know about dot file. Link to comment Share on other sites More sharing options...
boen_robot Posted May 3, 2009 Share Posted May 3, 2009 Well then, that's a huge format...There's WebDot, which can translate .dot files to SVG. SVG is an XML based format, so that's a good place to start from. The conversion to HTML is practically impossible - you're better of using either the SVG image (for browsers that can display it) or use WebDot to generate a PNG image (supported in all modern browsers). For converting to Excel... I'm not sure if such graphics can be mapped to Excel (Excel uses tables, and these graphics uses hierarchies), but if you have an idea as to what maps where, you can use PHP. With it, you can read the SVG graphic with DOM, and use the COM class to create a new Excel spreadsheet and write to it accordingly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.