From 0a747e6c1aba8218bda284477701044328fc50bb Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 25 Feb 2014 03:41:54 +0000 Subject: Add parse_trim_pcdata parse option. git-svn-id: https://pugixml.googlecode.com/svn/trunk@987 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index e5009fe..b912127 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -151,9 +151,12 @@ namespace pugi // This flag is off by default; turning it on may result in slower parsing and more memory consumption. const unsigned int parse_ws_pcdata_single = 0x0400; + // This flag determines if leading and trailing whitespace is to be removed from plain character data. This flag is off by default. + const unsigned int parse_trim_pcdata = 0x0800; + // This flag determines if plain character data that does not have a parent node is added to the DOM tree, and if an empty document // is a valid document. This flag is off by default. - const unsigned int parse_fragment = 0x0800; + const unsigned int parse_fragment = 0x1000; // The default parsing mode. // Elements, PCDATA and CDATA sections are added to the DOM tree, character/reference entities are expanded, -- cgit v1.2.3