最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ReadXml方法读取xml数据出错
时间:2022-07-02 11:42:15 编辑:袖梨 来源:一聚教程网
readxml方法读取xml数据出错
string xmlcode = file.readalltext("aa.xml");
file.writealltext("aa.xml", xmlcode.replace("&", "&"));//注意这一段
table.readxml("aa.xml");
/*
& 在 xml 中是特殊字符,使用它要转义
& -> &
*/