Echo nested XML to the console or a file. Since Apache Ant 1.7


Attribute Description Required
file The file to receive the XML. If omitted nested XML will be echoed to the log. No
append Whether to append file, if specified. No
namespacePolicy Sets the namespace policy as defined by Valid values are ignore, elementsOnly, or all. Since Apache Ant 1.8 No, default ignore

Parameters specified as nested elements

Nested XML content is required.


<echoxml file="subbuild.xml">
  <project default="foo">
    <target name="foo">

Creates an Ant buildfile, subbuild.xml.