I have some information I would like to load via an xml file
I believe the xml structure would appear like this
<array name="BOOKS">
<item>
<title>book1 title</title>
<chapters>17</chapters>
<pages>450</pages>
</item>
<item>
<title>book2 title</title>
<chapters>12</chapters>
<pages>326</pages>
</item>
</array>
I would want to use something like this to load a java array
final String[] myBOOKS = getResources().getStringArray(R.array.BOOKS);
My question is this. What is the syntax used to work with any of the parameters in the array? For instance,
then number of chapters in the second element or pages in the first element
is it as simple as:
myBOOKS[2][chapters]= 12
myBOOKS[1][pages]=450


