not answeared
Main Topics
Browse All TopicsI'm using SelectNodes from XMLDocument (In access 2003) in order to read all of the Nodes contained in the file, but I'm having some problems to get the second and third nodes in a loop.
When using this vb code, I receive two records of the first node ("//body2")
And go on to the rest of the xml, how do I get the individual values?
The xml doc start like :
<?xml version="1.0" encoding="UTF-8" ?>
- <form1>
&
&
- <section2>
<header2 xmlns:xfa="http://www.....
- <body2>
<contactPhone>07493153</co
<nameOfSchool>Ffff SCHOOL</nameOfSchool>
<position>PRINCIPAL</posit
<type>1</type>
<givenNames>LEISA</givenNa
<surname>NEATON</surname>
<employeeNo>2145</employee
<fullName>LEISA NEATON</fullName>
<location>School based</location>
</body2>
- <body2>
<contactPhone>07493153</co
<nameOfSchool>Fasdf</nameO
<position>TEACHER</positio
<type>1</type>
<givenNames>Barak</givenNa
<surname>OBAMA</surname>
<employeeNo>2189</employee
<fullName>Barak OBAMA</fullName>
<location>School based</location>
</body2>
<addBody2 xmlns:xfa="http://www.....
<Validate2 xmlns:xfa="http://www..../
</section2>
&
&
For Each nodeR In xmlFile.selectNodes("//bod
rst.AddNew
rst!fldAppID = AppID
rst!fldsName = nodeR.selectSingleNode("//
rst!fldgNames = nodeR.selectSingleNode("//
rst!fldPosition = nodeR.selectSingleNode("//
rst!fldEORC = nodeR.selectSingleNode("//
rst!fldEmployeeID = nodeR.selectSingleNode("//
rst!fldPh = nodeR.selectSingleNode("//
rst!fldSchoolDepartm = nodeR.selectSingleNode("//
rst.Update
Next nodeR
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: sandeep_patelPosted on 2009-04-01 at 17:07:28ID: 24045289
please move this question in VB zone.
Regards,
Sandeep