Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading XML into dataset

Status
Not open for further replies.

lfc77

Programmer
Aug 12, 2003
218
GB
I'm currently reading data from an XML file using XPathNavigator and XPathNodeIterator to select the subset of data that I want. I've never using the XPath objects before so I'm not sure how to get this data into a dataset.

XPathDocument doc = new XPathDocument(@"C:\inetpub\ XPathNavigator nav = doc.CreateNavigator();
XPathNodeIterator iter = nav.Select("/test/translation/engword[preceding-sibling::fraword = '" + strFraWord + "']");

Can anybody help me out with this? Any assistance would be really appreciated.


Cheers,

lfc77
 
Try something like this...

Code:
<SCRIPT ID="clientEventHandlersVBS" LANGUAGE="vbscript">

     Sub MySub()
         Set objXML = CreateObject("Msxml2.FreeThreadedDOMDocument")
         objXML.async = False
			objXML.load("myxmlfile.xml")
         dsoMyDataIsland.loadxml objXML.xml
     End Sub

</SCRIPT>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top