Bug 50430 - XMLFragment doesn't provide Text nodes and Elements in proper order
Summary: XMLFragment doesn't provide Text nodes and Elements in proper order
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 04:50 UTC by Bernd Fuhrmann
Modified: 2010-12-08 04:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Fuhrmann 2010-12-08 04:50:48 UTC
org.apache.tools.ant.util.XMLFragment enables Task authors to receive parts of the build.xml as DocumentFragment (via getFragment method). 
However getFragment returns a fragment that has a confused text/element order. Example:

part from build.xml
<mytask>
  Hello<br/>World
</mytask>

getFragment() returns something like:

HelloWorld<br/>