Traversing Visio vdx with XPath library in c#

D

DanaLe

Hi there,

I'm trying to take a Visio document saved as a vdx (xml) that appears to be
well formed, and to find the value of some custom properties of shapes in the
drawing.

The thing is, I can't get the value of the nodes. I have sample xml files
that I can traverse just fine, but when I submit the path
"VisioDocument/Pages/Page/Shapes/Shape/Prop/Value" zero nodes get returned (I
can guarantee there are several valid of these nodes in my document). In
fact, every path I try except for "/" (root) returns nothing, no nodes.

On the other hand, when I use some of the sample MS files and the paths to
traverse those, the nodes and their values are found.

Is there something different/unusual about a Visio vdx file that cannot be
used just like other xml?
 
D

David Parker

What is special is inherited values.
Unless the Custom Properties are edited in the instance of a Master, then
the values are inherited from the Master.
In which case you would need to get them from the Master shape.
 
E

Eunis

Hi DanaLe,
I am working on sth. similar to yours, may i know about your progress? Did
you resolve your problem by looking up the custom properties in the master
page?
 
D

David Parker

I think you may need to use the namespace
(I'm trying out LINQ, and I definitely do need it)
 

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