I got a doubt regarding saving the xml file in visualbasic

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.

obj.save 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:
obj.save string1 but no string1 = "c:\...."
vmandemAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Anthony PerkinsConnect With a Mentor Commented:
Have you tried assigning it as follows:

string1 = obj.xml

Anthony
0
 
Dave_GreeneCommented:
ac is right!
0
 
Dave_GreeneCommented:
A grade of a "B"...  why?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.