Generate or write XML for Visio files using PHP language

Started by hiddenpearls, July 24, 2010, 06:56:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hiddenpearls

hey,
My need is to write XML for visio using XMLWriter extension in php. I have no problem in using XMLWriter for writing XML but I need a format etc of XML Visio File VDX.

I have read this thread http://visguy.com/vgforum/index.php?topic=582.0

is there any examples ?

hiddenpearls

anyone please ? would really appreciate a lot if someone helps !

wapperdude

Patience Hiddenpearls, patience.

Weekends tend to be a little slow.  So, it may be some delay before someone responds.

Unfortunately, I'm not familiar with any of those issues, so I cannot contribute.

Wapperdude
Visio 2019 Pro

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/


Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

hiddenpearls

#6
yeah, I saw that 2010 schema.

Actually, I have to draw tables and their relationships. So, It will be a database diagram that will be generated on the fly using php application.
I should choose which schema 2010,2007 or 2003,2002 ?


Paul Herber

I guess so, it depends on what features you want to use. If you are happy with all the features in Visio 2002 then just that schema, it will still work with later versions.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

aledlund

as a note from the side, your schema should match the visio that you are attempting to create your drawing with. At v2007 the data functionality (datarecordset, etc.) was significantly enhanced.
al

hiddenpearls

After reading this thread discussion
http://visguy.com/vgforum/index.php?topic=582.0

I came to know that I ( my php application program ) can write XML for visio .VDX files and after writing XML as save it as .VDX
open it in Visio and it will work.

Is it possible that I can see example of generating XML for visio in c# or vb.net ?

geh_heim

hm you don't really like to look around google much do you?

"VIsio XML with c#" second result: http://www.visguy.com/2006/11/30/visio-and-xml-conference-resources/

there you can download sourcecode in vb

Nikolay

Quote from: hiddenpearls on July 28, 2010, 03:24:53 PM
Actually, I have to draw tables and their relationships.
So, It will be a database diagram that will be generated on the fly using php application.

I think I could mention that you might well be kind of misled here. You sure will be able to generate visio drawing using XML, but please keep in mind that you'll need to do all the layout yourself (draw database tables, draw relationships/connectors, specify their positions, etc). Means, all the functionality Visio has for database engineering via it's standard "Database" plugin won't be available for your diagram.

Means, I have a hunch that Visio XML generation is the least of challenges you might face while implementing this :)

hiddenpearls

Quote from: Nikolay on July 29, 2010, 07:22:26 AM

I think I could mention that you might well be kind of misled here. You sure will be able to generate visio drawing using XML, but please keep in mind that you'll need to do all the layout yourself (draw database tables, draw relationships/connectors, specify their positions, etc). Means, all the functionality Visio has for database engineering via it's standard "Database" plugin won't be available for your diagram.

Means, I have a hunch that Visio XML generation is the least of challenges you might face while implementing this :)

Yes you understand well what I need to do. I will do the layout myself (draw database tables, draw relationships/connectors, specify their positions, etc) using XML.

hiddenpearls

and to inform you , I have generated the XML of DIA http://projects.gnome.org/dia/faq.html
Now my task is to generate the XML for Visio.

Php code I will write will be OpenSource.