Hello!
I need to handle a very big xml file, which consists of a small <header>
part and a big <data> part:
<document>
<header>
...
</header>
<data>
<record>
...
</record>
<!-- thousands of other records follow -->
</data>
</document>
I want to use castor to achieve the following:
a) using the SourceGenerator to have a object structure. Not just for
marshalling/unmarshalling.
b) unmarshall just the header of the structur above, whilst the <data>
part is processed by an self-written SAX parser.
c) marshalling such a document, without having the whole data in memory.
What possibilities exists for point 'b'? I don't want the
unmarshall-code to read over all of the <records>. In addition, is it
possible to do that task in a single pass read?
To point 'c': whilest <header> is small and therefore can stay in
memory, the many <records> are to much to be hold there. So the records
have to be processed step by step. Is that possible?
Best regards
Henning
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev