| 439 | } |
| 440 | |
| 441 | static void generateElementForDict(const ValueMap& dict, pugi::xml_node& parent) |
| 442 | { |
| 443 | auto dictDS = parent.append_child("dict"sv); |
| 444 | for (const auto& iter : dict) |
| 445 | { |
| 446 | auto key = dictDS.append_child("key"sv); |
| 447 | key.append_child(pugi::xml_node_type::node_pcdata).set_value(iter.first); |
| 448 | |
| 449 | generateElementForObject(iter.second, dictDS); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | static void generateElementForArray(const ValueVector& array, pugi::xml_node& parent) |
| 454 | { |
no test coverage detected