Hello !
I have a list of XML commands that I have coded with castor. Since the
fields of the commands are always the same I'd like to put them in a
template or file and include them in every command, is it possible to do it
?
Here's what it looks like:
<class name="it.pride.iptv.netcentrex.BaseCommandCreate">
<map-to xml="ccsmp-create" />
<field name="sessionId" type="java.lang.String">
<bind-xml name="session" node="attribute" />
</field>
<field name="enterprises"
type="it.pride.iptv.netcentrex.Enterprise"
collection="arraylist">
<bind-xml name="enterprise" />
</field>
.....
</class>
<class name="it.pride.iptv.netcentrex.BaseCommandDelete">
<map-to xml="ccsmp-delete" />
<field name="sessionId" type="java.lang.String">
<bind-xml name="session" node="attribute" />
</field>
<field name="enterprises"
type="it.pride.iptv.netcentrex.Enterprise"
collection="arraylist">
<bind-xml name="enterprise" />
</field>
.....
</class>
<class name="it.pride.iptv.netcentrex.BaseCommandUpdate">
<map-to xml="ccsmp-update" />
<field name="sessionId" type="java.lang.String">
<bind-xml name="session" node="attribute" />
</field>
<field name="enterprises"
type="it.pride.iptv.netcentrex.Enterprise"
collection="arraylist">
<bind-xml name="enterprise" />
</field>
.....
</class>
Can I avoid to repeat n times the fields list, for every new command ?
thanks a lot
francesco
--
View this message in context:
http://www.nabble.com/Is-it-possible-to-include-an-XML-file-in-the-configuration---tp20030513p20030513.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email