Hi
I have an xml problem I was hoping someone can help me with...
<?xml version="1.0" encoding="UTF-8" ?>
- <
java version="1.4.1_01" class="java.beans.XMLDecoder">
- <object class="java.util.Vector">
- <void method="add">
- <object class="java.util.Vector">
- <void method="add">
<
string>INDEX_KEY</string>
</void>
</object>
</void>
- <void method="add">
- <object class="java.util.Vector">
- <void method="add">
<string>7</string>
</void>
</object>
</java>
^^^^^^^^^^^^^^^^^
this is the simple XML file I have created, now I am looking for some way to call the two objects defined so that I can use them in my program. The code I use to call it is:
XMLDecoder XD = new XMLDecoder (new FileInputStream (strLocation));
TestData = XD.readObject ();
XD.close ();
this throws an exception also for which I have written a code to catch.
Can anyone tell me how to add/alter the code to accomodate for the multiple objects. Objects maybe more than 2 that have been defined above.