Maybe i need do be more precise
JiBX can instanciate object according to element name
but in my case i need to do that from an element content
my question is Do i need to create a special factory that would check the contant value of the tag type or is there a mean to do that by a good combination of option in the binding definition
thanks a lot for your answer
jonas
bill vezÿffffe9 <[EMAIL PROTECTED]> a écrit :
hi all,
I'm new to JiBX, and I'm not sure how to solve my problem. I didn't find any answer in the mailing list. Here's the point:
I got an XML structure like this
<pre>
<object>
<type>type1</type>
<value>val</value>
</object>
<object>
<type>type2</type>
<value>value</value>
</object>
</pre>
an i need to bind this to one of these classes according to the element value of type
type1 -> Foo
type2 -> Bar
Is there a straight method to do that with JiBX in the binding definition ?
is someone can show me an xml binding structure that solve this case
thanks for your help
Jonas
Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users
Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
------------------------------------------------------------------------- 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