I would like to initialize a XmlNodeReader against a group of xml records in the "while" routine at the end of this code. Is this possible?
Dim xmlF As String = "../XMLFILE.xml"
Dim xpathDoc As XPathDocument = New XPathDocument(xmlF)
Dim xpathNav As XPathNavigator = xpDoc.CreateNavigator
Dim xmlNM As XmlNamespaceManager = New XmlNamespaceManager(xpathNav.NameTable)
xmlNM.AddNamespace("jl", "Dim xpExpr As XPathExpression = xpNav.Compile("/jl:XmlListing/listing [starts-with(state,""" & stc & """]"
xpExpr.SetContext(xmlNM)
Dim xpNodeIt As XPathNodeIterator = xpNav.Select(xpExpr)
xpNodeIt.Current.MoveToRoot()
xpNodeIt.Current.MoveToFirstChild()
While (xpNodeIt.MoveNext())
Dim newNR As XmlNodeReader = New XmlNodeReader(?)
While (newNR.Read())
Any suggestions gratefully received.
Dim xmlF As String = "../XMLFILE.xml"
Dim xpathDoc As XPathDocument = New XPathDocument(xmlF)
Dim xpathNav As XPathNavigator = xpDoc.CreateNavigator
Dim xmlNM As XmlNamespaceManager = New XmlNamespaceManager(xpathNav.NameTable)
xmlNM.AddNamespace("jl", "Dim xpExpr As XPathExpression = xpNav.Compile("/jl:XmlListing/listing [starts-with(state,""" & stc & """]"
xpExpr.SetContext(xmlNM)
Dim xpNodeIt As XPathNodeIterator = xpNav.Select(xpExpr)
xpNodeIt.Current.MoveToRoot()
xpNodeIt.Current.MoveToFirstChild()
While (xpNodeIt.MoveNext())
Dim newNR As XmlNodeReader = New XmlNodeReader(?)
While (newNR.Read())
Any suggestions gratefully received.