Hi,

I have a collection unmarshalled to a String containing ArrayList. The first element of the collection is so important and different that I would like to move it out from the collection to a 'stand-alone' String field.

1. I could unmarshall the whole object, then assign the 0th element of the ArrayList to the String, and remove the 0th element from the ArrayList. But this is not good solution for me.

2. I could (?) define an <element field="MySpecialMember" set-method="setMySpecialMember">, but this must be called after the unmarshalling of the ArrayList completed. If this is doable, where should I put this element tag, to ensure the rith timing of the set-method call?

3. Yes, I could define a new class containing an ArrayList and a store-method; but I would like to avoid to have a special class for this.

=========================================================================
Not jibx, but XML:
Everybody is speaking about validated xml files; If I ask them how they validate an XML, I do not receive any useful answer (Of course I also tried to google, maybe not too extensievly). I think there should be programs taking my definition.xsd and my data.xml files, checking it before 'publication'. (OK, I could use the xsd2jibx; than try to unmarshall my xml file; then jibx will say that the xml is malformed or not; but this is complicated.)

Thanks, appriciate,
Tamas

--
Tamas Hegedus, PhD          | phone: (1) 919-966 0329
UNC - Biochem & Biophys     | fax:   (1) 919-966 5178
5007A Thurston-Bowles Bldg  | mailto:[EMAIL PROTECTED]
Chapel Hill, NC, 27599-7248 | http://biohegedus.org


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to