Hello.
Using VS.NET 2003(VB), .NET Framework 1.1.4322, ASP.NET 1.1.4322, WSE2.0 on
a WinXP Pro Sp2 computer.
I need help trying to extract the "TruckName" data from this XML document
(at the end of this request). I want the data after the equal(=) sign. The
data is the InnerXml and the OuterXml
I tried using this code, but it never executes the For Each loop.
Dim Trucks As XmlDocument =
GetList(XataNetConduitWebService.ClassType.Truck, orgID)
Dim truck As XmlNode
Dim nodeList As XmlNodeList
Dim root As XmlNode = Trucks.DocumentElement
nodeList = root.SelectNodes("//TruckName")
For Each truck In nodeList
Me.txtNodeInfo.Text = Me.txtNodeInfo.Text & truck.Value
Next
Any help would be gratefully appreciated.
Thanks,
Tony
<TruckConduitDataObject><Truck XVIN="67111377" TruckName="243101"
OrganizationID="1212" OrganizationName="KTC Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true"
Odo="292488.5" OdoAsOf="2006-06-26T20:48:00.0000000-05:00"
FormattedDateTime="06/26/06 04:48p" Axles="3" Berth="false"
HasOnBoardPlatform="true" HasDIU="true" /><Truck XVIN="67112645"
TruckName="447858" OrganizationID="1213" OrganizationName="Croydon Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true" Odo="82045.6"
OdoAsOf="2006-06-26T19:06:00.0000000-05:00" FormattedDateTime="06/26/06
03:06p" Axles="3" Berth="false" HasOnBoardPlatform="true" HasDIU="true"
/><Truck XVIN="67112646" TruckName="447857" OrganizationID="1213"
OrganizationName="Croydon Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true"
Odo="358688.3" OdoAsOf="2006-06-26T20:35:00.0000000-05:00"
FormattedDateTime="06/26/06 04:35p" Axles="3" Berth="false"
HasOnBoardPlatform="true" HasDIU="true" /><Truck XVIN="67112656"
TruckName="302" OrganizationID="1212" OrganizationName="KTC Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true"
Odo="203206.9" OdoAsOf="2006-06-26T19:01:00.0000000-05:00"
FormattedDateTime="06/26/06 03:01p" Axles="3" Berth="false"
HasOnBoardPlatform="true" HasDIU="true" /><Truck XVIN="67112657"
TruckName="287095" OrganizationID="1212" OrganizationName="KTC Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true" Odo="167641"
OdoAsOf="2006-06-26T04:00:00.0000000-05:00" FormattedDateTime="06/26/06
12:00a" Axles="3" Berth="false" HasOnBoardPlatform="true" HasDIU="true"
/></TruckConduitDataObject>
<TruckConduitDataObject><Truck XVIN="67111377" TruckName="243101"
OrganizationID="1212" OrganizationName="KTC Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true"
Odo="292488.5" OdoAsOf="2006-06-26T20:48:00.0000000-05:00"
FormattedDateTime="06/26/06 04:48p" Axles="3" Berth="false"
HasOnBoardPlatform="true" HasDIU="true" /><Truck XVIN="67112645"
TruckName="447858" OrganizationID="1213" OrganizationName="Croydon Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true" Odo="82045.6"
OdoAsOf="2006-06-26T19:06:00.0000000-05:00" FormattedDateTime="06/26/06
03:06p" Axles="3" Berth="false" HasOnBoardPlatform="true" HasDIU="true"
/><Truck XVIN="67112646" TruckName="447857" OrganizationID="1213"
OrganizationName="Croydon Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true"
Odo="358688.3" OdoAsOf="2006-06-26T20:35:00.0000000-05:00"
FormattedDateTime="06/26/06 04:35p" Axles="3" Berth="false"
HasOnBoardPlatform="true" HasDIU="true" /><Truck XVIN="67112656"
TruckName="302" OrganizationID="1212" OrganizationName="KTC Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true"
Odo="203206.9" OdoAsOf="2006-06-26T19:01:00.0000000-05:00"
FormattedDateTime="06/26/06 03:01p" Axles="3" Berth="false"
HasOnBoardPlatform="true" HasDIU="true" /><Truck XVIN="67112657"
TruckName="287095" OrganizationID="1212" OrganizationName="KTC Bulk"
DateOfQuery="2006-06-26T22:25:20.5770000-05:00" IsActive="true" Odo="167641"
OdoAsOf="2006-06-26T04:00:00.0000000-05:00" FormattedDateTime="06/26/06
12:00a" Axles="3" Berth="false" HasOnBoardPlatform="true" HasDIU="true"
/></TruckConduitDataObject>