I'm having real issues in assigning a simple external XML file to a list view and have been given loads of options which i cannot get my head around, my last was to create a 'List' which im having difficulty with....
By calling for 'bandName' i can get the results required but my question is how can i get year, date, compName, section, position & conductor in the same 'List' and search arrays as needed??
Using Log(List1) i get the following....
(ArrayList) [Melton]
(ArrayList) []
(ArrayList) []
(ArrayList) []
...........etc
Im guessing List1 would need to be a dynamic array, hope someone can help me here
By calling for 'bandName' i can get the results required but my question is how can i get year, date, compName, section, position & conductor in the same 'List' and search arrays as needed??
Using Log(List1) i get the following....
(ArrayList) [Melton]
(ArrayList) []
(ArrayList) []
(ArrayList) []
...........etc
Im guessing List1 would need to be a dynamic array, hope someone can help me here
B4X:
Sub Parser_EndElement (Uri As String, Name As String, Text As StringBuilder)
Dim List1 As List
List1.Initialize
If parser.Parents.IndexOf("result") > -1 Then
If Name = "bandName" Then
Title = Text.ToString
List1.Add(Title)
End If
End If
End Sub
B4X:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datas xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<comp>
<result>
<year>2013</year>
<date>19th January 2013</date>
<compName>Butlins Mineworkers</compName>
<section>Championship</section>
<bandName>Virtuoso GUS</bandName>
<position>1</position>
<conductor>John Berryman</conductor>
</result>
</comp>
</datas>