boost ptree XML parsing for special character

29 Jul
2015
29 Jul
'15
8:58 a.m.
Experts, I am looking for the help in parsing special characters in XML using boost. Original Text: <module>'Admin'</module> Exported Text: <module>'Admin'</module> Using the below code: ptree xmlTree; read_xml("org.txt",xmlTree,boost::property_tree::xml_parser::trim_whitespace); std::string filePath("outFile.txt"); xml_writer_settings<char> settings(' ', 4); boost::property_tree::write_xml(filePath, xmlTree, std::locale(),settings); Any help is highly appreciated Regards, UJ
3496
Age (days ago)
3496
Last active (days ago)
0 comments
1 participants
participants (1)
-
Uthpal Urubail