B.22 EchoXML

Echo nested XML to the console or a file.

Table B.22: Attributes

NameTypeDescriptionDefaultRequired
file String The file to receive the XML.by default nested XML is echoed to the logNo
append Boolean Whether to append file, if specified. falseNo

B.22.1 Parameters specified as nested elements

Nested XML content is required.

B.22.2 Examples

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

Create a Phing buildfile, subbuild.xml.