Home  >  Article  >  Backend Development  >  Import XML files into EXCEL

Import XML files into EXCEL

黄舟
黄舟Original
2017-02-25 14:12:482091browse

1. Creation of XML (Extensible Markup Language) file

<?xml version="1.0" 
encoding="utf-8"?>
<Item>
<a><SFZHM>370322200202</SFZHM><XM>张</XM><KH>C55796656</KH><TXDZ>山东省</TXDZ><YZBM>256300</YZBM><LXDH>1312886</LXDH><CWYYSM>公民不匹配</CWYYSM></a>
<a><SFZHM>370322200126</SFZHM><XM>张</XM><KH>C55797528</KH><TXDZ>山东省</TXDZ><YZBM>256300</YZBM><LXDH>13182886</LXDH><CWYYSM>公民不匹配</CWYYSM></a>
<a><SFZHM>370322200219</SFZHM><XM>闫</XM><KH>C55799232</KH><TXDZ>山东省</TXDZ><YZBM>256300</YZBM><LXDH>13181886</LXDH><CWYYSM>公民身份配</CWYYSM></a>
<a><SFZHM>3703222070238</SFZHM><XM>吕</XM><KH>C55802331</KH><TXDZ>山东省</TXDZ><YZBM>256300</YZBM><LXDH>1318886</LXDH><CWYYSM>上送证件有合法</CWYYSM></a>
</Item>

Description: The first line is the XML declaration, which defines the XML version (1.0) and the encoding used. The second line describes the root element of the document, and the last line defines the end of the root element. Any start tag must have an end tag.

2. Import into Excel

Import XML files into EXCEL

The above is the content of importing XML files into EXCEL. For more related content, please pay attention to the PHP Chinese website (www.php.cn) !


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Semantics of XML tagsNext article:Semantics of XML tags