hunglduc 0 Posted April 28, 2009 Report 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 Quote Link to post Share on other sites
boen_robot 107 Posted April 28, 2009 Report 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)? Quote Link to post Share on other sites
hunglduc 0 Posted May 3, 2009 Author Report 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. Quote Link to post Share on other sites
boen_robot 107 Posted May 3, 2009 Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.