Android Question Problem with SaxParser and XML - Eliza / Alice / Chatterbot.

Erel

B4X founder
Staff member
Licensed User
Longtime User
Create a custom type with these fields:
B4X:
Sub Process_Globals
Type MyType (Pattern As String, Template As String, lis As List)
Private Current As MyType

Sub Parser_EndElement
'fill Current fields
'...
If Name = "category" Then
  m.Put(Current.Pattern, Current)
  Dim Current As MyType
  Current.Initialize
End If
End Sub
 
Upvote 0
Top