generating xml file for visio diagram

R

rahimoddinm

Hi,
I need to generate xml file for shape objects and there connections i
.vsd file. I saved a visio daigram in .xml format but a lot o
unnecassary information generated in that file and it is unreadable
Can any one suggest me better solution.
Thanks in advance.
by,
rahee
 
C

Chris [Visio MVP]

A couple of ideas:

1. Write some sort of XSL transformation for the Visio.vdx file to filter
out all the stuff you don't care about.
2. Create a .NET object structure and serialize it. Something along these
lines:

MyVisPage
MyVisShapes
MyVisShape
sMasterNameU
dPinX
dPinY
dWidth
dHeight
sText
MyVisShape
MyVisShape
...
 
J

John Marshall, MVP

So Chris, will we be seeing an article from you on the minimum amount of XML
is required for a drawing? ;-)

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
Visio Wishlist http://www.mvps.org/visio/wish_list.htm

Chris said:
A couple of ideas:

1. Write some sort of XSL transformation for the Visio.vdx file to filter
out all the stuff you don't care about.
2. Create a .NET object structure and serialize it. Something along these
lines:

MyVisPage
MyVisShapes
MyVisShape
sMasterNameU
dPinX
dPinY
dWidth
dHeight
sText
MyVisShape
MyVisShape
...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top