How do I create VISIO diagram using xml.

R

Rajiv Shah

When I saved as vdx, it generates xml with too many tags. I want to know
which are required so I can generated xml using java and open in visio.
 
M

Mark Nelson [MS]

I don't know if there is a definitive list. Visio will fill in just about
anything you omit during the load process.

The basic building blocks of a diagram are the shapes. You should give your
shapes a bit of geometry, a Width, a Height, a PinX and a PinY. That should
allow Visio to generate an image for you.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

Rajiv Shah

When I created just blank diagram and exported, even though it has few
hundred line of XML tag. I want to know what are really required.
Mark does it possible to contact you.

Rajiv Shah
Sr. Solution Architect
JPMorgan Chase
 
M

Mark Nelson [MS]

You are welcome to e-mail me at the address listed in my profile. Just
eliminate the 'online' bit from the address.

In this case I don't have much additional information to provide. Generally
you can omit anything that is not directly related to a shape. That means
any element without a <Shape> tag somewhere nested inside of it is not
necessary. Then for shapes, the critical items are the Width, Height, PinX
and PinY. This is called the shape transform, and this information is
needed to place the shape on the page. Geometry cells define the appearance
of the shape, so that is the other essential set of elements.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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