Class EchoXML

All Implemented Interfaces:
Cloneable, DynamicElementNS

public class EchoXML extends XMLFragment
Echo XML. Known limitations:
  1. Processing Instructions get ignored
  2. Encoding is always UTF-8
Since:
Ant 1.7
  • Constructor Details

    • EchoXML

      public EchoXML()
  • Method Details

    • 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:
    • setAppend

      public void setAppend(boolean b)
      Set whether to append the output file.
      Parameters:
      b - boolean append flag.
    • execute

      public void execute()
      Execute the task.