From 5b7a9b9b2d9fe3af26934fbb2cdc2755e12d494c Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 29 Apr 2014 14:32:57 -0700 Subject: [PATCH] rapidxml: validate closing tags like libxml2 parser (no overhead measurable seen) --- src/rapidxml_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rapidxml_loader.cpp b/src/rapidxml_loader.cpp index 557ae0950..98ddeb336 100644 --- a/src/rapidxml_loader.cpp +++ b/src/rapidxml_loader.cpp @@ -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(&v.front());