I solved it myself.. Sorry.

Solution was:

Dim xpathDoc As XPathDocument
Dim xmlNav As XPathNavigator
Dim xmlNI As XPathNodeIterator
xpathDoc = New
XPathDocument(ConfigurationSettings.AppSettings("x mlArticlesLocation"))
xmlNav = xpathDoc.CreateNavigator()
xmlNI = xmlNav.Select("/articles/article[id=" & Id & "]/readurl")
While (xmlNI.MoveNext())
Response.Write(xmlNI.Current.Name + " : " + xmlNI.Current.Value &
"<br>")
End While

--
---
Tim De Vogel
S-Data NV


"Eph0nk" <tim.antispampleaseremove@s-data.be> schreef in bericht
news:3f2a687b$0$14324$ba620e4c@reader1.news.skynet .be...
> hi,
>
> I have an xml file that contains "articles". It looks like this:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <!-- XML articles File -->
> <articles>
> <article>
> <id>1</id>
> <title>ARTICLE1!</title>
> <description>DESCRIPTION OF ARTICLE1</description>
> <pubdate>01/08/2003</pubdate>
> <type>NEWS</type>
> <readurl>blabla030666</readurl>
> <NewsPictureUrl>blabla0303a.gif</NewsPictureUrl>
> </article>
> </articles>
>
> readurl contains the location of the article on the HD. What is the most
> easy way to retrieve the readurl value using the id in vb.net? Is there a
> simple command for something like this (comparable to an executescalar)?
>
> Thanks in advance,
> ---
> Tim De Vogel
> S-Data NV
>