Here is my problem.
I need to process very large xml files, avoiding memory problems.
I found this thread about the problem:
http://www.mail-archive.com/[email protected]/msg02366.html
It suggests, assuming this input prototype
<whatever>
<myitems>
<item id="1" x="13" y="-111" intens="1234.12"/>
<item id="2" x="111" y="0" intens="42.01"/>
<item id="3" x="666"/>
<item id="4" x="1038" y="2"/>
<item id="5" y="87" intens="3.1415"/>
</myitems>
</whatever>
the following binding schema
<binding name="testcoll">
<mapping name="whatever" class="ItemContainer"
factory="ItemReaderColl.containerFactory" post-set="postSet">
<collection name="myitems" item-type="ItemData"
store-method="addItem" iter-method="getIterator">
<structure name="item" value-style="attribute"
type="ItemData" factory="ItemContainer.newItem" usage="optional">
<value name="id" field="id"/>
<value name="x" field="x" usage="optional"/>
<value name="y" field="y" usage="optional"/>
<value name="intens" field="intensity"
usage="optional"/>
</structure>
</collection>
</mapping>
</binding>
which should simulate a buffered container which hostes no more than a
pre-defined number of elements.
This is exactly what i need, but i can't figure out how this can be implemented
in the related classes.
anyone can help me?
thank you
enrico
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users