ElementTreeData::EmptyTagMode
Constructors
- Singleton()
- ImpliedSingleton()
- OpenAndClose()
Usage
This data type is used by ElementTree::string and ElementTree::lazyPrint 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>