I got a doubt regarding saving the xml file in visualbasic

Posted on 2001-06-22
Last Modified: 2013-11-25
I created the elements in visualbasic which gives me finally xml file, my question is :

I declared a string variable and i'm saving the file like this. string1,but i don't want to save the file to any local directory, it should remain in the string variable called string1(the whole xml file)and i want to use the string some where in the program to transfer.

It gives me Runtime erro(parameter not supported).

It accepts if i give the path to the string like:

string1 = "c:\temp\info.xml"
 but i don't want to save to directories, because every time i save it piles up with xml file, how do i store the file in string itself like: string1 but no string1 = "c:\...."
Question by:vmandem
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 75

Accepted Solution

Anthony Perkins earned 50 total points
ID: 6219882
Have you tried assigning it as follows:

string1 = obj.xml


Expert Comment

ID: 6220026
ac is right!

Expert Comment

ID: 6225046
A grade of a "B"...  why?

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question