Castor Question

G

George Palmer

Hi,

I'm writing an xml file using Castor. It looks something like this:

<a>
....
</a>
<b>
....
</b>
<c>
....
</c>

Now the file will contain upto 5000 of type c although on occasions
possibly more. When generating the xml file I just append the class c
when they are generated within the program (ie there is no class that
encapsulates classes a, b and c). This works fine but when reading
the file back castor assumes the xml file has one class encapsulating
others. Obviously I want to read on demand as storing 5000 objects in
an array will be memory expensive. Can anybody tell me how to do
this?

Thanks in advance,

George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top