我想从我拥有的这些数组中创建一个 XML 文档。数组如下所示:
Array
(
[0] => Firstname1
[1] => Firstname2
[2] => Firstname3
)
Array
(
[0] => Lastname1
[1] => Lastname2
[2] => Lastname3
)
...........
我希望 XML 文档的结构如下:
<Member>
<Firstname>Firstname1</Firstname>
<Lastname>Lastname1 </Lastname>
</Member>
我怎样才能做到这一点?感谢帮助!