Skip to content
Snippets Groups Projects
Commit 7f514aad authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Ignore XML comments in input files.

Only those, which are read by the read_xml() function.
parent 32467337
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,8 @@ int main(int argc, char *argv[]) ...@@ -64,7 +64,8 @@ int main(int argc, char *argv[])
// Project's configuration // Project's configuration
ConfigTree project_config; 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.", DBUG("Project configuration from file \'%s\' read.",
project_arg.getValue().c_str()); project_arg.getValue().c_str());
......
...@@ -53,7 +53,7 @@ bool BoostXmlGmlInterface::readFile(const std::string &fname) ...@@ -53,7 +53,7 @@ bool BoostXmlGmlInterface::readFile(const std::string &fname)
// build DOM tree // build DOM tree
using boost::property_tree::ptree; using boost::property_tree::ptree;
ptree doc; ptree doc;
read_xml(in, doc); read_xml(in, doc, boost::property_tree::xml_parser::no_comments);
if (!isGmlFile(doc)) if (!isGmlFile(doc))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment