Controls printing of empty elements
ElementTreeData::EmptyTagMode< >
= Singleton()
| ImpliedSingleton()
| OpenAndClose()
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>
Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
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.