1. Reference
Special characters in XML_xml special characters_Huolong Yingtian's blog-CSDN blog
When reading and writing xml content, 5 characters will be escaped. For example, when the write attribute is &, the saved result will be &
2. Code
#include <iostream>
#include <string