Tag Archives: PHP Tutorials

PHP – DOM Parser

DOM parsers work well with both XML and HTML. This parser is tree-based where DOM first loads the data into the Dom object then it will load the data to the browser.  Below example will help you to understand how to access the HTML data in the web browser. Example: <?php   $html = ‘       <head>          <title>DATA</title>      </head>       <body> … Read More »

PHP – Simple XML

This simple XML parser will parse the name, containing attributes and the text content within the simple XML file. These are tree-based parsers. PHP supports some of the XML functions that are described below. simplexml_load_file()- this function has five parameters among which the first parameter is mandatory as it takes the file path to load the XML file.… Read More »