xml instead of ini

U

Ulf Nilsson

Hi,
I still use ini-files to get/store information - for different reasons - and
thinking of replacing them with xml-files. Is this possible? if so, how do I
navigate in a xml-file using vba?

// Ulf
 
J

Jonathan West

Ulf Nilsson said:
Hi,
I still use ini-files to get/store information - for different reasons -
and
thinking of replacing them with xml-files. Is this possible? if so, how do
I
navigate in a xml-file using vba?

// Ulf

In your VBA project, go to Tools, References, and set a reference to a
version of "Microsoft XML". there are several versions of the XML library
available, you will have to make a decision on which one to use. I've tended
to use the oldest available on my system (2.6) on the assumption that it is
most likely to be installed in the widest number of systems.

This makes available an object model for accessing XML files. An article
describing the object model and how to use it is available here

http://msdn.microsoft.com/en-us/library/aa468547.aspx

Depending on which version of the XML object library you use, you might need
to find a different version of that article.
 
K

Karl E. Peterson

Ulf said:
I still use ini-files to get/store information - for different reasons - and
thinking of replacing them with xml-files. Is this possible? if so, how do I
navigate in a xml-file using vba?

I hate to ask, but are you rearchitecting due to an actual need, or is this just a
fashion statement? Nothing beats an INI file for the ease of remote troubleshooting
and user support. If XML doesn't provide you with *significant* advantage (clearly,
application specific), ...
 

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