B.19 EchoXML

Echo nested XML to the console or a file.

Table B.19: Attributes

NameTypeDescriptionDefaultRequired
fileStringThe file to receive the XML.by default nested XML is echoed to the logNo
appendBooleanWhether to append file, if specified.falseNo

B.19.1 Parameters specified as nested elements

Nested XML content is required.

B.19.2 Examples

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

Create a Phing buildfile, subbuild.xml.