Get document XML - 2

X

xargon

Hi everyone,

My query is whether it is possible to get the document XML programatically
without saving it to a file. So, I am working on a document and through VBA
code in the document I want to get the XML representation of the document.
Basically, I want to save the file to memory instead of a file.

Cheers!
xargon
 
J

junethesecond

What kind of XML file? Do you mean vdx file that Visio makes? Or, how do
you get by hands? If your visio is 2003, did you tried recording your
operation.
 
X

xargon

Hi,

I mean the XML that Visio generates when it saves as a VDX file. I am
probably end up creating a temporary file, saving the file, closing it and
reading it again back into a variable. I did not find anything that will
let me save a file in memory. The only available methods are to read the
SolutionXML tag content.

I did not want to create a temporary file and go through that fuss. But
looks like no other way out :(

Cheers!
xargon
 
J

junethesecond

I recomend that you would like to read vdx file as textfile with open
statement and line input statement from Excel, and write texts directly on
excel cells.
 
J

junethesecond

I think only the Visio can make XML(vdx) data.
Vdx file can be deleted from memory after the job.
 

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