Sub getCartLocParser_StartElement(Uri As String, Name As String, Attributes As Attributes)
If Name = "CLocation" Then
Try
daObject.mapLocInst.Initialize ' New Object Reference
Catch
Msgbox(LastException.Message, "ERROR")
End Try
End If
End Sub
Sub getCartLocParser_EndElement (Uri As String, Name As String, Text As StringBuilder)
Dim strRetVal As String
Dim strParent As String
Dim strDBId As String
If Name = "DBID" Then
Try
daObject.mapLocInst.dbId = Text
'localMapLocObj.dbId = Text
sbSanity.Append("Name: " & Name & "Value: " & Text & "First Node" & CRLF)
Catch
daObject.mapLocInst.dbId = 0
End Try
End If
If Name = "LocationName" Then
Try
daObject.mapLocInst.locNm = Text
Catch
daObject.mapLocInst.locNm = ""
End Try
End If
If Name = "SKU" Then
Try
daObject.mapLocInst.sku = Text
Catch
daObject.mapLocInst.sku = ""
End Try
End If
If Name = "Shelf" Then
Try
daObject.mapLocInst.shlf = Text
Catch
daObject.mapLocInst.shlf = 0
End Try
End If
If Name = "Orientation" Then
Try
daObject.mapLocInst.ori = Text
Catch
daObject.mapLocInst.ori = 0
End Try
End If
If Name = "Short" Then
Try
daObject.mapLocInst.sho = Text
Catch
daObject.mapLocInst.sho = 0
End Try
End If
If Name = "Out" Then
Try
daObject.mapLocInst.ot = Text
Catch
daObject.mapLocInst.ot = 0
End Try
End If
If Name = "WalkSequence" Then
Try
daObject.mapLocInst.wlkSeq = Text
Catch
daObject.mapLocInst.wlkSeq = 0
End Try
End If
If Name = "CLocation" Then
Try
Dim cTmpLoc As CLocation
cTmpLoc = daObject.mapLocInst
mapLocList.Add(cTmpLoc)
'daObject.mapLocInst = Null
sbSanity.Append("Adding Object ID:" & daObject.mapLocInst.dbId & CRLF)
Catch
Msgbox("CLocation List Fail", "Fail")
End Try
End If
If Name = "ArrayOfCLocation" Then
Msgbox(sbSanity.ToString, "RESULT")
Try
If mapLocList.Size > 0 Then
bMapLocationsFound = True
End If
Catch
Msgbox("bMapLocationsFound Boolean Flag Fail", " bMapLocationsFound Fail")
End Try
End If
End Sub