ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: custom task & 'untouched' xml from build file
Date Fri, 21 Jun 2002 15:44:36 GMT
Erik.Ostermueller@alltel.com wrote:
> I'm trying to figure out whether ANT is the right tool for a particular
> task.
> 
> I'm writing a test harness that submits XML messages to a server.
> 
> I've read the doc for custom tasks.  It seems that ANT will parse the
> XML
> and pass it to your task one 'piece' at a time.  The 'pieces' are things
> like 
> values of attributes, element text, nested elements.
> 
> I would like the top level of my custom task xml to behave exacltly like
> this.
> However, I'd like ANT to pass all nested XML to me in an unaltered form,
> not piece by piece.

Could you use CDATA and pass it as element content? Something like

<sendxml>
   <message><![CDATA[
<servermessage>
...
]]></message>
</sendxml>

You get the content of the "message" nested element and send that off to the 
server.

Conor



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


Mime
View raw message