mahavir123 1 Junior Poster in Training

I am reading XML and PHP. I have to import a xml file in mysql database using PHP script.
I tried using 'simplexml_load_string()' and 'simplexml_load_file()' functions. It worked. But how the xml parser is used to import XML files into Mysql Database.
Please tell me about this, I tried the example in http://www.w3schools.com/PHP/php_xml_parser_expat.asp but could not able to import to Mysql Database.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.