I am a new developer. In my app I am trying to parse two xml files. The
first xml file contains some list of data as follows:
<?xml version="1.0"?>
<Subjects>
<Chapter>
<chapter-name>A</chapter-name>
<packs><pack><packname>B</packname>
</packs>
</Chapter>
</Subjects>
The data will be showed in a listview manner. When I touch A it moves to B,
and when I touch B it moves over to the next XML file:
<?xml version="1.0"?>
<flash>
<card>
<question>ABC</question>
<answer>abc</answer>
<question>QWE</question>
<answer>abc</answer><card>
<flash>
I want view the second xml file to be an String.
Here I want to do a flip order; the question must be one side and the answer
must be of other side.
Now the problem is that I am getting the first XML file correctly but the
later one is not getting parsed. Should i have to create a separate for list
XML handler file for both xml files. I have placed both the xml files in
res->raw and its beeen mentioned in the coding as:
//getting the path of xml to parse
inputstream = this.getResources().openRawResource(R.raw.list);
resID = getResources().getIdentifier(name, "raw", "com.gis.flash");
Can anyone explain me what errors I have committed and how to parse two xml
files ?
--
Siva Shankar K
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en