Hi,

I have create an xml using Xstream by using the objectOutputStreamer 
(http://pastebin.com/by0JPec1 )
It has created this xml file (http://pastebin.com/tW5Gvi8z )

As you can see there are differt objects in the xml (because the arraylist has 
different types of objects in it). it saves them perfectly.

but the problem is i can’t read them back in properly

I can read them in with a objectInputStreamer but the problem is I need to 
retype every object type in again.
1) I don’t know how many objects there are in the xml file because it can get 
verry big (so I can’t figure out before how many times I need to repeat the 
ReadObject() call

2) I can’t know beforehand what type of object ReadObject will return I need to 
check it with instance or something similar

this is my reader code so far (http://pastebin.com/PqSUG6nf )

Please help

With kind regards

Jeroen

Reply via email to