将 XML 声明添加到 Flex e4x XML 对象之前
如何添加 XML 声明 - < ?xml 版本=“1.0”编码=“UTF-8”? > - 到 Flex XML 对象?您可以对旧的 XML 执行同样的操作 - 新的 XMLDocument 类和 xmlDecl 属性。
How do you add an XML declaration - < ?xml version="1.0" encoding="UTF-8"? > - to a Flex XML object? The same thing you could do with the old XML - new XMLDocument class and the xmlDecl property.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎新的
XML
类总是忽略此处理指令。如果是这样,那么在输出到文件或发送到服务器时,您需要手动添加
字符串。
Seems that new
XML
class always ignores this processing instruction.If it's true then you need to add
<?xml version="1.0" encoding="UTF-8"?>
string manually when it is outputted to a file or sent to the server.