---
name: "ElementTree.lazyOutput"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ElementTree.lazyOutput"
---

# ElementTree.lazyOutput(3kaya)

Print an ElementTree to a user-defined target

## NAME

ElementTree::lazyOutput - Print an ElementTree to a user-defined target

## SYNOPSIS

**Void lazyOutput(** *ElementTree etree, EmptyTagMode mode=OpenAndClose, Int indentlevel=0, UnicodeFormat uform=LiteralUTF8, HashSet\<String\>  breakers=newHashSet(1, strHash), HashSet\<String\>  emptyels=newHashSet(1, strHash), Void(String) outfn* **)**

## ARGUMENTS

**etree** The ElementTree to print

**mode** How to print empty tags (see **ElementTreeData.EmptyTagMode (3kaya)** ). Optional, defaulting to **OpenAndClose**

**indentlevel** The initial indentation level to use. Optional, defaulting to zero.

**uform** The method of printing non-ASCII characters (see **ElementTreeData.UnicodeFormat (3kaya)** ). Optional, defaulting to **LiteralUTF8**

**breakers** A dictionary of elements that start a new line in the output code. Optional, defaulting to an empty dictionary

**emptyels** A dictionary of elements that are empty. Optional, defaulting to an empty dictionary

**outfn** A function to output strings

## DESCRIPTION

Print an ElementTree to the target of *outfn* , using the selected conversion options.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**ElementTree.lazyPrint (3kaya)**

**ElementTree.string (3kaya)**
