I'm converting html into xml, changing tag names and other stuff, but i have problems with preserving whitespaces. This is how I'm loading file:
xml_parse_result check = doc.load_file(sourcePath.c_str(), (parse_default | parse_ws_pcdata), encoding_auto);
But if I use it that way, also '\n' and '\r' are preserved. I can't understant why, because parse_escapes and parse_eol are on by default.
parse_ws_pcdata_single, doesn't fit me, because whitespaces I wan't to preserve have sibling.