0
我已经看过一些关于此主题的相关帖子,但我无法弄清楚如何解决我的问题。我想这与它的星期一事实有关。Flex:替换XML对象中的节点
那么,这里就是了。我有一个XML对象,其中包含:
<root>
<page>
<text>
<style properties=""/>
<label> Text one</label>
</text>
<text>
<style properties=""/>
<label> Text two</label>
</text>
</page>
<page>
<text>
<style properties=""/>
<label> Text three</label>
</text>
<text>
<style properties=""/>
<label> Text four</label>
</text>
</page>
</root>
而我只想用新的替换标签节点。我把新的XMLList放在一个XMLList中,但现在我坚持要如何替换实际的节点。这是XMLList中的样子:
<page>
<text>
<style properties=""/>
<label> Replace the first one</label>
</text>
<text>
<style properties=""/>
<label> Replace the second one</label>
</text>
</page>
<page>
<text>
<style properties=""/>
<label> Replace the third one</label>
</text>
<text>
<style properties=""/>
<label> Replace the fourth one</label>
</text>
</page>
T汉克斯!毕竟它真的很简单。 – eldamar 2010-01-26 07:45:19
请注意,因为这是您的第二个问题,您没有接受任何答案或对任何答案投了票。请通过阅读http://stackoverflow.com/faq确保StackOverflow是如何工作的,特别是“如何在这里提问?”部分。干杯 – 2010-01-26 08:45:11
对不起,不知道接受答案的事情。我试图对答案投票,但我没有足够的分数来这样做?我得看看常见问题,谢谢你的链接。 – eldamar 2010-02-08 09:09:27