You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jim Fuller <ji...@ruminate.co.uk> on 2004/01/29 00:08:04 UTC
Nested xml in ant task
Greetings all,
Is there the concept of an xml datatype in Ant with respect to creating
a newtask ?
<newtask>
<some_xml_frag>
<a atrib=""><b>
.....etc.....etc.......
</b></a>
</some_xml_frag>
</newtask>
As illustrated I want to be able to nest any xml fragment within new
task, I think I may have seen something re Cocoon task...don't need to
marshal into dom or anything...perhaps a toString() method exists that
just returns NestedElement xml object, e.g. the xml as a string.
tia, Jim Fuller
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Nested xml in ant task
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 28 Jan 2004, Jim Fuller <ji...@ruminate.co.uk> wrote:
> Is there the concept of an xml datatype in Ant with respect to
> creating a newtask ?
Ant's CVS HEAD has something, but it will change shape before it
becomes part of any release:
<http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/util/XMLFragment.java>
An example that uses it could be
<http://cvs.apache.org/viewcvs.cgi/ant/proposal/sandbox/dotnet/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/AbstractBuildTask.java>
Stefan
--
http://stefanbodewig.blogger.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org