Class EchoXML

java.lang.Object
All Implemented Interfaces:
java.lang.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

  • Method Details

    • setFile

      public void setFile​(java.io.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:
      DOMElementWriter.XmlNamespacePolicy
    • 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.