Dear Stefan,
Yes, now I am starting to understand what's going on here. Ant must use
a SAX parser, and it's well beyond the ability of the application to
reconsider how the events are interpreted, including grouping them as a
larger bundle of straight text.
I've copied the XMLFragment code wit
On Fri, 14 Jan 2005, Dominique Devienne <[EMAIL PROTECTED]> wrote:
>> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
>> It is a problem, but one that would be rather hard to fix without
>> breaking BWC.
>
> With a DynamicConfigurator-based impl of XMLFragment, yes.
>
> But that's not the only wa
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
>
> On Fri, 14 Jan 2005, Dominique Devienne <[EMAIL PROTECTED]> wrote:
>
> > There's one last twist about text handling in Ant that I
> > discovered with a modified version of though: Ant
> > merges text nodes for an element, calling addText() onl
On Fri, 14 Jan 2005, Dominique Devienne <[EMAIL PROTECTED]> wrote:
> There's one last twist about text handling in Ant that I
> discovered with a modified version of though: Ant
> merges text nodes for an element, calling addText() only
> once, so bde does not call addText("b") and
> later addTex
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
>
>
>
> ... arbitrary XML goes here ...
>
>
>
> and then serialize the DocumentFragment held by
> XMLFragement into a String.
Thanks for the explanation Stefan. I didn't grasp the
fact that a DynamicConfigurator was still introspected
On Thu, 13 Jan 2005, Brian Topping <[EMAIL PROTECTED]> wrote:
> I'm trying to use DynamicConfigurator and need a bit of
> clarification. I'd like to make the child text of a Task (defined
> with a taskdef) be usable as a String by the Task.
That would be the addText(String) method, no DynamicFoo
> -Original Message-
> From: Matt Benson [mailto:[EMAIL PROTECTED]
>
> But if the nested "text" is actually XML, isn't that
> exactly what DynamicElement(NS) handles?
I would think not. Text nodes are not elements in XML.
Both TEXT and ELEMENT derive from Node directly.
I don't think you
But if the nested "text" is actually XML, isn't that
exactly what DynamicElement(NS) handles?
-Matt
--- Dominique Devienne <[EMAIL PROTECTED]> wrote:
> > From: Brian Topping [mailto:[EMAIL PROTECTED]
> >
> > I'm trying to use DynamicConfigurator and need a
> bit of clarification.
> > I'd like t
> From: Brian Topping [mailto:[EMAIL PROTECTED]
>
> I'm trying to use DynamicConfigurator and need a bit of clarification.
> I'd like to make the child text of a Task (defined with a taskdef) be
> usable as a String by the Task.
>
> The issue is that the "arbitrary" text is XML and I want to get