https://bz.apache.org/bugzilla/show_bug.cgi?id=50430
--- Comment #1 from Stefan Bodewig <bode...@apache.org> --- I'm afraid this is not fixable within XMLFragement as it is rooted in the way Ant handles mixed content. When parsing a build file, Ant creates a RuntimeConfigurableWrapper instance that represents the thing it currently parses. Any nested text is sent to the addText method of it and the implementation simply concatenates all texts. So for any task of type (or nested element of such a thing) mixed content will always only have a single test node inside. -- You are receiving this mail because: You are the assignee for the bug.