Hello,
I can easily read an RSS sheet, but I am not able able
to read a RDF sheet. Each time I try to read it returns me
0 nodes. Here is how I try it.
Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs)
ReadRDF("http://www.xsltblog.com/index.rdf")
End Sub
Private function ReadRDF(byval strRDF as string)
Dim reader as new XmlTextReader(strRDF)
Dim xmlDoc as new XmlDocument
Dim nsmRequest as New XmlNamespaceManager
(xmlDoc.NameTable)
nsmRequest.AddNamespace
("xmlns:rdf", "http://www.w3.org/1999/02/22-rdf-syntax-
ns#")
Dim nodes as XmlNodeList = xmlDoc.SelectNodes
("//xmlns:rdf/rdf", nsmRequest)
response.write(nodes.Count.ToString())
end function
Can somebody tell me what I do wrong?