这是xml的示例:
<root>
<something1></something1>
<something2></something2>
<something3></something3>
<important>
<some1>123_random_number</some1><some2>ASD</some2>
</important>
<important>
<some1>456_random_number</some1><some2>FGH</some2>
</important>
<important>
<some1>789_random_number</some1><some2>JKL</some2>
</important>
</root>
我需要更改元素的顺序,以获取这样的 xml 文档:
<root>
<something1></something1>
<something2></something2>
<something3></something3>
<important>
<some1>789_random_number</some1><some2>JKL</some2>
</important>
<important>
<some1>456_random_number</some1><some2>FGH</some2>
</important>
<important>
<some1>123_random_number</some1><some2>ASD</some2>
</important>
</root>
有人可以帮助我吗?在此先感谢,