S
Shapper
Hello,
I am accessing a value in a XML value:
news.Load(Server.MapPath("xml/ news.rss"))
newslabel.Text = CType(news.SelectSingleNode("rss version="2.0
"/channel/title").InnerText, String)
The XML file:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>News</title>
<description>...</description>
<item>
<title>...</title>
<description>...</description>
</item>
...
</channel>
</rss>
If I take the <rss version="2.0"> and use:
newslabel.Text =
CType(news.SelectSingleNode("channel/title").InnerText, String)
Can you tell me how to solve this? The problem is in my node path when I
have ("rss version="2.0"/channel/title")
I used =" instead of " to try to fix the problem but it didn't
work.
Thanks,
Miguel
I am accessing a value in a XML value:
news.Load(Server.MapPath("xml/ news.rss"))
newslabel.Text = CType(news.SelectSingleNode("rss version="2.0
"/channel/title").InnerText, String)
The XML file:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>News</title>
<description>...</description>
<item>
<title>...</title>
<description>...</description>
</item>
...
</channel>
</rss>
If I take the <rss version="2.0"> and use:
newslabel.Text =
CType(news.SelectSingleNode("channel/title").InnerText, String)
Can you tell me how to solve this? The problem is in my node path when I
have ("rss version="2.0"/channel/title")
I used =" instead of " to try to fix the problem but it didn't
work.
Thanks,
Miguel