SolutionXML being lost!

G

Guy007

I have a VDX file which I modified in an ASP.NET application. One of the
things I did was to add an XML string to the solutionXML tag of the VDX file.

Problem is that if i open the VDX file in Visio and save it again, the
solutionXML is cleared away! I want this data to remain there, unmodified!

What's wrong and how can i solve this?

Thanks!
 
K

Konrad Anton

Guy007 said:
I have a VDX file which I modified in an ASP.NET application. One of the
things I did was to add an XML string to the solutionXML tag of the VDX file.

Problem is that if i open the VDX file in Visio and save it again, the
solutionXML is cleared away! I want this data to remain there, unmodified!

Did you append an XML element to the SolutionXML contents of another
solution (which would give that solution any right to remove your
element) or did you create a SolutionXML element of your own?

I'm working with structures like
<VisioDocument>
... diagram stuff
<SolutionXML Name="Konrads.Foo">
<foo></foo>
</SolutionXML>
<SolutionXML Name="Konrads.Bar">
<bar></bar>
</SolutionXML>
</VisioDocument>

without a problem.

--Konrad
 
D

David Parker

Are writing to the VDX file directly or via Visio automation?
If you are doing the former, then it could be that Visio is removing the
SolutionXML because it is not correctly formed.
Try writing via Automation to check that the VDX looks exactly the same.
 

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