|
From: Bryant H. <bry...@ho...> - 2007-12-19 00:07:32
|
Hi,
I'm trying to author some custom XML for use in Spring. The =
documentation is quite good and I've made quite a bit of progress. What =
I'd like to do is support some standard Spring syntax within my XML. =
Something like
<somens:mytag attr1=3D"xxx" attr2=3D"xxx">
<somens:anothertag>
<list>
<value>1</value>
<ref bean=3D"..." />
<bean ... />
</list>
</somens:anothertag>
</somens:mytag>
It's the middle bit of XML I'd be happy if it work as just regular =
Spring. If your curious I just want to do this because in 90% of the =
cases I don't need to pass in an array (the anothertag tag is rare), but =
in those cases the standard flexible Spring is probably better than me =
making something new up.
So my questions.
1. Is there an example of how I'd declare this in my XSD? I assume I =
import the beans namespace and can refer to this type?
2. Is there an example of how I'd write my parser to delegate this =
spring style XML element to some standard Spring call so I get back a =
ManagedList?
Thanks,
Bryant |