将 XML 声明添加到 Flex e4x XML 对象之前

发布于 2024-09-15 07:05:32 字数 122 浏览 5 评论 0原文

如何添加 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

关于从前 2024-09-22 07:05:32

似乎新的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文