Re: Re: XML to MySQL
| From: | justin gruenberg | Date: | Thu, 03 Jul 2003 07:47:01 +0000 |
| Subject: | Re: Re: XML to MySQL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153835@lists.php.net to get a copy of this message | ||
I think starting with the XML parsing functions might be a logical step.
For what you're doing, expat <http://us4.php.net/xml> is going to be a more logical solution for parsing the xml. There is also DOMXML, which makes more sense to a lot of people, but will be slower at parsing your file.
Nabil wrote:
any one ?? "Nabil" <nabil.attar@aws-syria.com> wrote in message news:20030702100806.15704.qmail@pb1.pair.com...Dear All ; I have an XML files like the following and i want to make an PHP code to insert it into my MySQL how can i read the nodes ot tages??? by the way i can export like thisfilefrom PhpMyAdmin but i cann't dump it back... Thanks in advance Nabil <?xml version="1.0" encoding="windows-1252" ?> - <scs-dist> - <!-- table dist --> - <dist> <id>1</id> <fname>Mark</fname> <lname>Smith</lname> <company>company1</company> <phone>123456</phone> <govern>city1</govern> <address>first street</address> <area>12</area> </dist>