Excel 導出 xml數據

Excel數據:

ID	姓名	手機
1	張三	13800000000
2	李四	13900000000
3	王五	13700000000
4	趙7	13500000000


 

xml文件:

<?xml version="1.0" encoding="ISO-8859-1"?>
 <root>
 <people>
 <id/>
 <name/>
 <mobile/>
 </people>
 <people>
 <id/>
 <name/>
 <mobile/>
 </people>
 </root>


操作:數據->xml->xml源,右邊會出來xml源窗口,點擊下面的xml映射,選擇上面的xml文件,確定,拖住people到ID上,然後菜單選擇數據->xml->導出,保存文件即可。

導出的xml文件如下:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<people>
		<id>1</id>
		<name>張三</name>
		<mobile>13800000000</mobile>
	</people>
	<people>
		<id>2</id>
		<name>李四</name>
		<mobile>13900000000</mobile>
	</people>
	<people>
		<id>3</id>
		<name>王五</name>
		<mobile>13700000000</mobile>
	</people>
	<people>
		<id>4</id>
		<name>趙7</name>
		<mobile>13500000000</mobile>
	</people>
</root>



 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章