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:
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
 
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
 
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 ..
 
Back
Top