G
Guest
Hi
I have an xml file that contains the following data at the bottom of this
email..
I want to step through each getting the date and the pick qty. In my code
here I only every get one, the first value back..
Is my vb code wrong, or my xml file not proper ?
m_picklist = m_xmld.SelectNodes("/LogData/Picks")
For Each m_node In m_picklist
Dim pDate = m_node.ChildNodes.Item(0).InnerText
Dim pCount = m_node.ChildNodes.Item(1).InnerText
Next
................
(xml extract)
<LogData>
<Serial>A-01-03-01</Serial>
<SQLVersion>Not Set</SQLVersion>
<ClientVersion>1.0d</ClientVersion>
- <Picks>
<Date>06/11/2009</Date>
<Count>52</Count>
<Date>06/10/2009</Date>
<Count>52</Count>
<Date>06/09/2009</Date>
<Count>76</Count>
<Date>06/06/2009</Date>
<Count>1</Count>
<Date>06/05/2009</Date>
<Count>37</Count>
<Date>06/04/2009</Date>
<Count>69</Count>
<Date>06/03/2009</Date>
<Count>44</Count>
<Date>06/02/2009</Date>
<Count>39</Count>
<Date>06/01/2009</Date>
<Count>47</Count>
</Picks>
.............
I have an xml file that contains the following data at the bottom of this
email..
I want to step through each getting the date and the pick qty. In my code
here I only every get one, the first value back..
Is my vb code wrong, or my xml file not proper ?
m_picklist = m_xmld.SelectNodes("/LogData/Picks")
For Each m_node In m_picklist
Dim pDate = m_node.ChildNodes.Item(0).InnerText
Dim pCount = m_node.ChildNodes.Item(1).InnerText
Next
................
(xml extract)
<LogData>
<Serial>A-01-03-01</Serial>
<SQLVersion>Not Set</SQLVersion>
<ClientVersion>1.0d</ClientVersion>
- <Picks>
<Date>06/11/2009</Date>
<Count>52</Count>
<Date>06/10/2009</Date>
<Count>52</Count>
<Date>06/09/2009</Date>
<Count>76</Count>
<Date>06/06/2009</Date>
<Count>1</Count>
<Date>06/05/2009</Date>
<Count>37</Count>
<Date>06/04/2009</Date>
<Count>69</Count>
<Date>06/03/2009</Date>
<Count>44</Count>
<Date>06/02/2009</Date>
<Count>39</Count>
<Date>06/01/2009</Date>
<Count>47</Count>
</Picks>
.............