The schema for the property element should also support an xsd:any extension
type so that one is not constrained to simple constructs. For example, I can
use mulitple namespaces to introduce custom types that are marshalled with
either jbossxb or jaxb:
| <bean name="ComplexPropertyTests"
| bean="org.jboss.test.jmx.complexattrs.ComplexPropertyTests">
| <property name="Bean1"
| xmlns:ns1="urn:schema:ns1:jbossxb">
| <ns1:javabean1>
| <property name="bindAddress">127.0.0.1</property>
| <property name="someDate">Sun Jan 2 23:26:49 PST
2005</property>
| <property name="props">
| prop1=value1
| prop2=value2
| prop3=${prop3.systemProperty}
| </property>
| <property name="names">name1,name2,name3</property>
| <property name="someURL">http://www.jboss.org</property>
| </ns1:javabean1>
| </property>
| <property name="Bean2"
| xmlns:ns2="urn:schema:ns2:jaxb">
| <custom>
| <person>
| <first-name>Java</first-name>
| <last-name>Duke</last-name>
| </person>
| </custom>
| </property>
| </bean>
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870495#3870495
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870495
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development