>From my experience with JiBX, you could only load employee information
(and drop the consultant, customer,etc.), but you will load all
employee.  If you want to really reduce the three, maybe a Xquery first
and then parse the resulting tree with JiBX?!

To have JiBX ignore the other elements from the XML, just don't put them
in the Binding file. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ravikumar
Sent: Monday, March 19, 2007 1:28 PM
To: jibx-users@lists.sourceforge.net
Subject: [jibx-users] JiBX- Binding only a part of the document


Hi, I have an xml document with different pieces of information. eg.,
persons.xml below contains a list of employees  ,a list of customers, a
list of consultants, etc..
<persons>
      <employee>...</employee>
      <employee>...</employee>
   
      <customer>...</customer>
      <customer>...</customer>
      
      <consultant>...</consultant>
       ...
</persons>

I want to bind and read only the employee elements. 

This file is huge. At runtime, I don't want to load the whole file into
memory at the same time. Is it possible to load these employee elements
one at a time OR in small groups. I read that something could be done
like a call-back. But I am more looking for a pull mechanism where I can
read elements on demand. 

Please let me know if this is possible.

Regards
Ravi
--
View this message in context:
http://www.nabble.com/JiBX--Binding-only-a-part-of-the-document-tf342857
9.html#a9556805
Sent from the jibx-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to