Question Reading/Writing XML to a file? (V.EASY)

darrenbooy

Member
Joined
Mar 16, 2009
Messages
8
Programming Experience
Beginner
Hi all,

I have very simple request.

I just need some sample code to save the blue values to an xml file as shown below:

textbox.size =48
textbox.font.colour = Blue


Saved to c:\myfile.xml as


<interface>
<textsize>48</textsize>
<textcolor>Dark Blue</textcolor>
</interface>


My second job is to able to read the textsize and textcolor from the XML file and save it to a local variable. Like shown below in my horrible pseudo.

dim textsize_user as short
dim textcolor_user as string
textsize = <textsize>
textcolor= <textcolor>

Sorry for the rubbish examples but I am very much a beginner at VB.NET so am just looking for the most simple solution no matter how rough!!

Thanks in advance!:eek:
 
Back
Top