XML parser in PHP.

XML Parser is used to read and update, create and manipulate an XML document. In PHP two major types of XML parsers (Tree-Based Parsers, Event-Based Parsers).

Code :