rapidxml: validate closing tags like libxml2 parser (no overhead measurable seen)

This commit is contained in:
Dane Springmeyer 2014-04-29 14:32:57 -07:00
parent 5bfd260859
commit 5b7a9b9b2d

View file

@ -81,7 +81,7 @@ public:
// Parse using appropriate flags
// https://github.com/mapnik/mapnik/issues/1856
// const int f_tws = rapidxml::parse_normalize_whitespace;
const int f_tws = rapidxml::parse_trim_whitespace;
const int f_tws = rapidxml::parse_trim_whitespace | rapidxml::parse_validate_closing_tags;
rapidxml::xml_document<> doc;
doc.parse<f_tws>(&v.front());