Yes, it is possible by using “simplexml_load_file()” function.

In this tutorial we read “all_products.xml” using index.php file.

Step-1: Create “all_products.xml” by copy and paste this code


<frame_style>Full Rimmed
150 Black

<frame_style>Full Rimmed
120 Black


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top
%d bloggers like this: