${newDoc()}
Creates a new XML Document. If provided, this task also creates a root element with the specified NAME. This task return either the root element (if present) or the document node.
| Name | XPath | Description | Reagent Type | Expected Type | Required |
|---|---|---|---|---|---|
| NAME | descendant-or-self::text() | Optional element name. If provided, this task will create a root element with this NAME and return it. | PHRASE | java.lang.String | No |
Creates a new XML document containing '<example foo="bar"/>', then writes it to the file 'example.xml':