ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Mixed content problem with literal XML data via DynamicConfig urator
Date Fri, 31 Oct 2003 17:18:15 GMT
> From: Patrick Surry [mailto:Patrick.Surry@quadstone.com]
> 
> Thanks to feedback from the list, I've got a slightly modified version of
> Dominique's code working (see end) that builds a DOM document to house
> whatever
> 'literal' XML data I want within my task, including property substitution
> for
> attribute values and text nodes.  The only problem now is that it doesn't
> seem
> to work well for 'mixed' content (ie. mixed elements and text) since all
> the
> child elements seem to get create'd prior to any of the text-node
> siblings.
<snip/>
> 
> Any thoughts?  I'm guessing it's because all createDynamicElement() calls
> happen before any addText() calls - should I be able to createText() to
> preserve the sequencing?

See http://marc.theaimsgroup.com/?l=ant-dev&m=106710471400773&w=2 for a
recent discussion of this issue. Your use case might be a legitimate reason
for introducing 'proper' handling of 'Text' XML nodes. --DD

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


Mime
View raw message