Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何添加 XML 声明 - < ?xml version="1.0" encoding="UTF-8"?> - 到 Flex XML 对象?您可以对旧的 XML 做同样的事情 - 新的 XMLDocument 类和 xmlDecl 属性。
似乎新XML类总是忽略这个处理指令。
XML
如果是真的,那么您需要在将<?xml version="1.0" encoding="UTF-8"?>字符串输出到文件或发送到服务器时手动添加字符串。
<?xml version="1.0" encoding="UTF-8"?>