Andy,
thanks for your answer but I need to be able to ignore fields on the
XML side, not on the bean side.
I think I can better explain with an example
My bean has 2 elements
A
C
my XML has 3 elements
A
B
C
with that configuration I would like to be able to read A and C into my
bean, but right now I only get A. I basically would like to be able to
tell betwixt to ignore B in the XML as it does not map to anything in
the bean. Is that possible? I know I can also write an XML validator and
make sure my XML is the right format, but if there is a solution within
betwixt it would be nice to know!
thanks for you help!
Nathalie
[EMAIL PROTECTED] wrote:
Nathalie,
I was reading some examples and stumbled onto something.
If you want to course-grain ignoring of properties, you can provide a
suppression strategy to BeanReader that will cause all properties with
that
name to be skipped.
http://commons.apache.org/betwixt/guide/binding.html
search for Ignoring Properties
Andy
/****************************************
* @author: Andrew Lenards
* @email: [EMAIL PROTECTED]
* @title: Systems Programmer, Principal
* @project: Tree of Life Web Project
* @website: http://tolweb.org/
* @dept: Dept. of Entomology
* @school: University of Arizona
* @geo-loc: Tucson, AZ 85721
***************************************/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Nathalie Doremieux
New Software Marketing
www.newsoftwaremarketing.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]