diff --git a/Applications/CLI/ogs.cpp b/Applications/CLI/ogs.cpp
index 6c57df810cdc49a86526e47cf9c8fe4c08f411aa..57b950434155145ae3a12cc33b1331eab7d4e6f7 100644
--- a/Applications/CLI/ogs.cpp
+++ b/Applications/CLI/ogs.cpp
@@ -64,7 +64,8 @@ int main(int argc, char *argv[])
 	// Project's configuration
 	ConfigTree project_config;
 
-	read_xml(project_arg.getValue(), project_config, false);
+	read_xml(project_arg.getValue(), project_config,
+			boost::property_tree::xml_parser::no_comments);
 	DBUG("Project configuration from file \'%s\' read.",
 		project_arg.getValue().c_str());
 
diff --git a/FileIO/XmlIO/Boost/BoostXmlGmlInterface.cpp b/FileIO/XmlIO/Boost/BoostXmlGmlInterface.cpp
index 0f24d4d0eef85019654e8fcd4f6dd4d116bd3536..e4717bab6b8a3fbbfa1c5eaf3b3aa661f332d608 100644
--- a/FileIO/XmlIO/Boost/BoostXmlGmlInterface.cpp
+++ b/FileIO/XmlIO/Boost/BoostXmlGmlInterface.cpp
@@ -53,7 +53,7 @@ bool BoostXmlGmlInterface::readFile(const std::string &fname)
 	// build DOM tree
 	using boost::property_tree::ptree;
 	ptree doc;
-	read_xml(in, doc);
+	read_xml(in, doc, boost::property_tree::xml_parser::no_comments);
 
 	
 	if (!isGmlFile(doc))