2 * libxml++ and this file are
3 * copyright (C) 2003 by The libxml++ Development Team, and
4 * are covered by the GNU Lesser General Public License, which should be
5 * included with libxml++ as the file COPYING.
8 #ifndef __LIBXMLPP_KEEPBLANKS_H
9 #define __LIBXMLPP_KEEPBLANKS_H
11 #include <libxml++config.h>
17 * This class set KeepBlanksDefault and IndentTreeOutput of libxmlpp
18 * and restore their initial value in its destructor. As a consequence
19 * the wanted setting is kept during instance lifetime.
21 class LIBXMLPP_API KeepBlanks {
23 static const bool Default = true;
26 KeepBlanks(bool value);
30 int oldKeepBlanksDefault_;
31 int oldIndentTreeOutput_;
36 #endif // __LIBXMLPP_KEEPBLANKS_H