Jump to content
hunglduc

Convert Dot File To Xml

Recommended Posts

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

Share this post


Link to post
Share on other sites

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)?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...