我在xml文件中有多个条目,如下所示
<Suggestion keyword="R. 233-32-2" label="R. 233-32-2"/>
<Suggestion keyword="R. 832-2" label="R.832-2"/>
.
.
<Suggestion keyword="A. 432-2" label="A.432-2"/>
我想用关键字值替换标签值。谁能告诉我我该怎么做?
<?xml version="1.0" encoding="UTF-8"?>
<AFS>
<Suggestions>
<Suggestion keyword="D. 1143-8" label="D.1143-8"/> <Suggestion keyword="R. 242-71" label="R.242-71"/> <Suggestion keyword="222-26" label="222-26"/>
<Suggestion keyword="L. 250-7" label="L.250-7"/> <Suggestion keyword="281 M" label="281 M"/>
</Suggestions>
</AFS>