Vb.net

Kaat

Member
Joined
Mar 24, 2005
Messages
22
Location
Belgium
Programming Experience
Beginner
how do I read a simple xml file

Hey,

Question, how do I read a simple xml file like this
VB.NET:
[left][color=#0000ff]<?xml version="1.0" encoding="UTF-8" ?>[/color] [url="file:///C:/Documents%20and%20Settings/katrien/My%20Documents/VBProject/family.xml#"][b][font=Courier New][color=#ff0000]-[/color][/font][/b][/url] [color=#0000ff]<[/color][color=#990000]family[/color][color=#0000ff]>[/color][url="file:///C:/Documents%20and%20Settings/katrien/My%20Documents/VBProject/family.xml#"][b][font=Courier New][color=#ff0000]-[/color][/font][/b][/url] [color=#0000ff]<[/color][color=#990000]name gender[/color][color=#0000ff]="[/color][b]Male[/b][color=#0000ff]">[/color] [color=#0000ff]<[/color][color=#990000]firstname[/color][color=#0000ff]>[/color][b]Tom[/b][color=#0000ff]</[/color][color=#990000]firstname[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#990000]lastname[/color][color=#0000ff]>[/color][b]Smith[/b][color=#0000ff]</[/color][color=#990000]lastname[/color][color=#0000ff]>[/color] [color=#0000ff]</[/color][color=#990000]name[/color][color=#0000ff]>[/color][url="file:///C:/Documents%20and%20Settings/katrien/My%20Documents/VBProject/family.xml#"][b][font=Courier New][color=#ff0000]-[/color][/font][/b][/url] [color=#0000ff]<[/color][color=#990000]name gender[/color][color=#0000ff]="[/color][b]Female[/b][color=#0000ff]">[/color] [color=#0000ff]<[/color][color=#990000]firstname[/color][color=#0000ff]>[/color][b]Dale[/b][color=#0000ff]</[/color][color=#990000]firstname[/color][color=#0000ff]>[/color] [color=#0000ff]<[/color][color=#990000]lastname[/color][color=#0000ff]>[/color][b]Smith[/b][color=#0000ff]</[/color][color=#990000]lastname[/color][color=#0000ff]>[/color] [color=#0000ff]</[/color][color=#990000]name[/color][color=#0000ff]>[/color] [color=#0000ff]</[/color][color=#990000]family[/color][color=#0000ff]>[/color] [/left]
in VB.NET and write this information into a temporary database.

Greetz
 
Last edited by a moderator:

kulrom

Well-known member
Joined
May 10, 2005
Messages
2,854
Location
Republic of Macedonia
Programming Experience
10+
Ok, let me make a demo as you could find more sense there ... btw, there are various techniques that know to parse xml files with .NET framework with using XmlTextReader, XmlDocument, XmlSerializer, DataSet and XpathDocument ... but i will make a demo with only one of them ... i hope you don't mind ... cheers :)

brb :D
 

levyuk

Well-known member
Joined
Jun 7, 2004
Messages
313
Location
Wales, UK
Programming Experience
3-5
How about retrieving data from a database and putting it into an XML file?
 

Kaat

Member
Joined
Mar 24, 2005
Messages
22
Location
Belgium
Programming Experience
Beginner
Thanx

I gonna try it now, because yesterday I didn't had the time, I'll let you now if it works.

greetz :)
 

kulrom

Well-known member
Joined
May 10, 2005
Messages
2,854
Location
Republic of Macedonia
Programming Experience
10+
Hi, Rat
Be sure to start your own thread instead of asking your question in another person's thread. That way, you will get the help you're seeking faster than by posting in someone else's thread, no matter how similar the problem is. Someone will help you out as soon as they can I'm sure.

Regards ;)http://www.rubilon.kulichki.com/games/robotsattack.html
 

Rat

Well-known member
Joined
Aug 2, 2005
Messages
72
Location
Somewhere between 0 and 1
Programming Experience
1-3
kulrom said:
Hi, Rat
Be sure to start your own thread instead of asking your question in another person's thread. That way, you will get the help you're seeking faster than by posting in someone else's thread, no matter how similar the problem is. Someone will help you out as soon as they can I'm sure.

Regards ;)
Apologies bro ..
 
Top Bottom