ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: handling an arbitrary elements in a custom task
Date Thu, 19 Aug 2004 13:54:22 GMT
Steve:  have a look at the oata.Dynamic* interfaces as
well as oata.util.XMLFragment.  They are intended to
serve this type of need.

-Matt

--- Stephen McConnell <mcconnell@apache.org> wrote:

> 
> I have a custom task within which I want to
> arbitrary XML and I want to
> find out how I can enable this.  I've been digging
> around in ant docs
> but without a lot of success.
> 
> In effect what I want to do is something like:
> 
> <x:block name="demo">
>   <x:component name="widget"
> class="org.gizmo.DefaultWidget">
>     <x:configuration>
>       <!--
>       In here I want users to be able to declare
> arbitrary elements.
>       In effect, what I need is a mechanism to
> intercept ant's 
>       nested element handling. 
>       -->
>     </xconfiguration>
>   </x:component>
> </x:block>
> 
> As in:
> 
>   <x:component name="widget"
> class="org.gizmo.DefaultWidget">
>     <x:configuration>
>       <x:whatever speed="faster"/> <!-- arbitrary
> user element -->
>     </xconfiguration>
>   </x:component>
> 
> Within my block task I need to get access to
> something like a DOM
> Element and handle nested elements and attributes
> myself.  
> 
> Is this possible?
> 
> Cheers, Steve.
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message