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

# ElementTreeData.EmptyTagMode(3kaya)

Controls printing of empty elements

## NAME

ElementTreeData::EmptyTagMode - Controls printing of empty elements

## SYNOPSIS

**ElementTreeData::EmptyTagMode\<** **\>**

-

  \=  **Singleton(****)**

-

  \|  **ImpliedSingleton(****)**

-

  \|  **OpenAndClose(****)**

## DESCRIPTION

This data type is used by **ElementTree.string (3kaya)** and **ElementTree.lazyPrint (3kaya)** to control the printing of empty elements (i.e. elements that are defined as empty, not merely elements that happen to have no content).

**Singleton**  or **OpenAndClose**  are both usable in XML ( **Singleton**  is usually more readable). If you are using this module to generate HTML (or other non-XML-based markup languages) then **ImpliedSingleton**  should be used. The following list shows how each displays an empty **br**  element.

-

  \-  **Singleton**  : *\<br /\>*

-

  \-  **ImpliedSingleton**  : *\<br\>*

-

  \-  **OpenAndClose**  : *\<br\>\</br\>*

## 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.
