I am looking for a way to parse and insert following XML string data to MySQL tables using php.. please help
<?xml version="1.0" encoding="UTF-8"?><brandModelListResponse>
<brand ID="Nokia" Description="Nokia">
<model ID="N93i" OS="Symbian" OSVersion="SymS60V3" image="nokia-n93i.gif">N93i</model>
<model ID="N95" OS="Symbian" OSVersion="SymS60V3" image="nokia-n95.gif">N95</model>
<model ID="Nokia300" OS="Symbian" OSVersion="SymS60V3" image="">Nokia300</model>
</brand>
<brand ID="Motorola" Description="Motorola">
<model ID="E1070" OS="J2ME" OSVersion="Motorola J2ME A.5" image="'E1070.jpg">E1070</model>
<model ID="E398" OS="J2ME" OSVersion="Motorola J2ME A.1" image="">E398</model>
</brand>
I have two tables, one for brands and other models.. need to insert all the data available in above xml to these tables..
Thanks in advance
Ansar