What is XML and how you can use it with PHP
XML which is a mark-up language allows you to share data across the network. XML is tree-based and event-based. PHP supports four XML parsers that are based on libxml, those parsers are- simple XML parser, DOM XML parser, XML parser and XML reader. Simple XML parser- these are tree-based parsers which parse the simple XML file. The simplexml_load_file() method is called that will access the XML file from its specified location. DOM parser- these parsers are complex node parsers which parser the complex XML file. It is an interface that modifies the XML file and is encoded with UTF-8 character encoding. XML parser- these parsers are the SAX parser and faster than other parsers. This parse will create and parse the XML file which is encoded by ISO-8859-1, US-ASCII and UTF-8 character encoding. XML Reader- these parsers are the Pull XML parser which will read the high complex XML file much faster.
People are also reading: