PHP uses simplexml_load_file to load XML files and display XML methods
This article mainly introduces PHP using simplexml_load_file load XML file and display XML method, example analysis of simplexml_load_file operation XML file skills, very practical value, the need for friends can refer to the next
This example describes how PHP uses Simplexml_load_file to load an XML file and display XML. Share to everyone for your reference. The implementation method is as follows:
?
1 2 3 4 |
$xml = simplexml_load_file ("Sample.xml"); Echo Htmlspecialchars ($xml->asxml ()); ?> |
Sample.xml file contents are as follows
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
A B C C D E F G H |
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/970759.html www.bkjia.com true http://www.bkjia.com/PHPjc/970759.html techarticle PHP uses simplexml_load_file to load XML files and display XML methods this article mainly introduces PHP using simplexml_load_file load XML file and display XML method, example analysis of SIMPLEXM ...