read / write data in XML file using VBA

W

ward

Hello,

I'm creating a VBA application in which I deal with
several word files. I use to store the list of these .doc
files in a .txt file which i access (read en write)
through the 'open' statement and 'line input' statement.

However, i was thinking that it would be more convenient
to store this data in an xml-structured file (instead of
my own textfiles with my own 'data-structure')

Somthing like:
<CHAPTERS>
<DOC>
<FILENAME>Chapt01.doc</FILENAME>
<FOLDER>c:\temp</FOLDER>
</DOC>
<DOC>
<FILENAME>Chapt02.doc</FILENAME>
<FOLDER>c:\temp</FOLDER>
</DOC>
</CHAPTERS>

My question is: does an object to *easily* interact
(read/write) with xml files from VBA exist already? Or do
I need to write this myself?

Thanks,
Ward
 

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