org.apache.tools.ant.taskdefs

Class EchoXML

public class EchoXML extends XMLFragment

Echo XML. Known limitations:
  1. Processing Instructions get ignored
  2. Encoding is always UTF-8

Since: Ant 1.7

Nested Class Summary
static classEchoXML.NamespacePolicy
Method Summary
voidexecute()
Execute the task.
voidsetAppend(boolean b)
Set whether to append the output file.
voidsetFile(File f)
Set the output file.
voidsetNamespacePolicy(EchoXML.NamespacePolicy n)
Set the namespace policy for the xml file

Method Detail

execute

public void execute()
Execute the task.

setAppend

public void setAppend(boolean b)
Set whether to append the output file.

Parameters: b boolean append flag.

setFile

public void setFile(File f)
Set the output file.

Parameters: f the output file.

setNamespacePolicy

public void setNamespacePolicy(EchoXML.NamespacePolicy n)
Set the namespace policy for the xml file

Parameters: n namespace policy: "ignore," "elementsOnly," or "all"

See Also: XmlNamespacePolicy