Hello
I've been makeing a AnimeWatcher lately. And I'm kinda stuck at an error.
What i am doing is that i try to make it read from a xml file. But I seem to lack at the knowledge to know how to do it. So I'm askeing for the more knowleged ppl =). My error is that the string "Dim NarutoLink = Info.ReadElementString("NLink")" Doesn't seem to be the right code to read xml files. Please help me out here.![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
BTW. if you want to see my xml file then its here:
I've been makeing a AnimeWatcher lately. And I'm kinda stuck at an error.
VB.NET:
Imports System.Xml
Imports System.IO
Public Class Form1
Dim Info As New XmlTextReader("AnimeInfo.xml")
Dim NarutoLink = Info.ReadElementString("NLink") [COLOR="Red"]<-- here is the 1st problem[/COLOR]
Dim OnePieceLink = Info.ReadElementString("OLink")
Dim BleachLink = Info.ReadElementString("BLink")
Dim NarutoEp = Info.ReadElementString("NEp")
Dim OnePieceEp = Info.ReadElementString("OEp")
Dim BleachEp = Info.ReadElementString("BEp")
Dim Ep As Integer = 0
What i am doing is that i try to make it read from a xml file. But I seem to lack at the knowledge to know how to do it. So I'm askeing for the more knowleged ppl =). My error is that the string "Dim NarutoLink = Info.ReadElementString("NLink")" Doesn't seem to be the right code to read xml files. Please help me out here.
BTW. if you want to see my xml file then its here:
VB.NET:
<?xml version="1.0" encoding="utf-8"?>
<XML>
<Naruto id="1">
<NLink>http://naruto-tv.com/naruto-episode-</NLink>
<NEp>130</NEp>
</Naruto>
<OnePiece id="2">
<OLink>http://www.onepieceship.com/one-piece-episode-</OLink>
<OEp>421</OEp>
</OnePiece>
<Bleach id="3">
<BLink>http://4bleach.com/bleach-episode-</BLink>
<BEp>99</BEp>
</Bleach>
</XML>