diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-11-09 09:11:30 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-11-09 09:11:30 -0800 |
commit | cd7e0b04f6851490c46d1a038764a9a7f44af232 (patch) | |
tree | bdc1da868bf662a123d5b56981ef7c21af50373d /src/pugixml.hpp | |
parent | c75e3c45e5de50a426bc248a68275ae971935438 (diff) |
Add format_no_empty_element_tags flag
Setting this flag outputs start and end tag for every element, including empty
elements.
Fixes #118.
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r-- | src/pugixml.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index d9b9c86..6288d4b 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -229,6 +229,9 @@ namespace pugi // Write every attribute on a new line with appropriate indentation. This flag is off by default. const unsigned int format_indent_attributes = 0x40; + // Don't output empty element tags, instead writing an explicit start and end tag even if there are no children. This flag is off by default. + const unsigned int format_no_empty_element_tags = 0x80; + // The default set of formatting flags. // Nodes are indented depending on their depth in DOM tree, a default declaration is output if document has none. const unsigned int format_default = format_indent; |