|
Lines 116-121
Link Here
|
| 116 |
if (optional<const Ptree &> attribs = pt.get_child_optional(xmlattr<Ch>())) |
116 |
if (optional<const Ptree &> attribs = pt.get_child_optional(xmlattr<Ch>())) |
| 117 |
for (It it = attribs.get().begin(); it != attribs.get().end(); ++it) |
117 |
for (It it = attribs.get().begin(); it != attribs.get().end(); ++it) |
| 118 |
stream << Ch(' ') << it->first << Ch('=') << |
118 |
stream << Ch(' ') << it->first << Ch('=') |
| 119 |
Ch('"') << it->second.template get_value<std::basic_string<Ch> >() << Ch('"'); |
119 |
<< Ch('"') |
|
|
120 |
<< encode_char_entities( |
| 121 |
it->second.template get_value<std::basic_string<Ch> >()) |
| 122 |
<< Ch('"'); |
| 120 |
|
123 |
|
| 121 |
if ( has_attrs_only ) |
124 |
if ( has_attrs_only ) |