simplexmlを使用してxmlのノード属性を更新することは可能ですか? 例: - 私のプログラムは、実際には教師用のクイズ エディターです。教師として、特定の質問属性を編集したいと考えています。すなわち
<Quiz>
<topic text="Preparation for Exam">
<subtopic text="Math">
<question text="1 + 1 = ?">
<answer num="A" Text="1" />
<answer num="B" Text="2" />
<answer num="C" Text="3" />
<answer num="D" Text="4" />
</question>
<question text="4 * 4 = ?" >
<answer num="A" Text="12" />
<answer num="B" Text="14" />
<answer num="C" Text="16" />
<answer num="D" Text="18" />
</question>
</subtopic>
</topic>
</Quiz>
出来ますか?前のノードを削除してから編集したノードを挿入するなど、多くの方法を試しましたが。しかし、このトリックは最後のノードでのみ機能します...他のノードではスワッピングを行うだけです