> If I wanted to read only certain records from an xml file, where do i
begin
my search to find out how to do that?
Probably using the XPathNavigator:
Here's a snippet of code from a project of mine:
dim XMLfilename As String = (MapPath("/districts/" & siteID &
"/xml/siteMenu.xml"))
Dim xpd As XPathDocument = New XPathDocument(XMLfilename)
Dim xpn As XPathNavigator = xpd.CreateNavigator()
' set globalMenuCategory
dim expr as XPathExpression =
xpn.Compile("//menuCategory[../descendant-or-self::pageID = '" & pageID &
"']")
dim ni as XPathNodeIterator = xpn.Select(expr)
ni.MoveNext()
if ni.Current.Value <> "" then
'globalMenuCategory = ni.Current.Value
else
'globalMenuCategory = "null"
end if
-Darrel