gpt4 book ai didi

xml - 加载 XML 文件时从文本节点的内容中去除前导和尾随空格

转载 作者:数据小太阳 更新时间:2023-10-29 02:21:33 28 4
gpt4 key购买 nike

在 actionscript 3 中,当尝试加载 XML 文件时

<Element><Property> a </Property></Element>

节点“property”中的值将只是“a”,删除尾随和前导空格。

我做了什么http://bugs.adobe.com/jira/browse/ASC-3125推荐,没有成功。有什么想法吗?

最佳答案

如前所述,XML.prettyPrinting 不起作用。最后通过添加 XML.ignoreWhitespace = false;

得到修复

在那行代码之后,没有删除尾随空格。

关于xml - 加载 XML 文件时从文本节点的内容中去除前导和尾随空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/801972/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com