im trying to upload a xml data feed to mysql so i can use the database with my php program. The problem that im having is usually i create the fields and import the feed. But the feed i have now is a bit strange..
<name>test</name>
<address>test address</address>
<phone>251447</phone>
</phone_count>
<pets>cat</pets>
</pet_count>
<images>
<image>1.jpg</image>
<image>2.jpg</image>
<image>4.jpg</image>
<image>16.jpg</image>
</images>
can someone tell me how can i create the fields for </phone_count> </pet_count> because those fields have only the closing tag.
how do i create a field for each image? because i haven't inserted data in a sub set.
im trying to load the data using
LOAD DATA LOCAL INFILE '/tmp/xml/data.xml'
INTO TABLE person_data