I have an XML file with several thousand products each using the same simple xml structure, This is one product...
<Category>
<CategoryID>12345</CategoryID>
<CategoryLevel>1</CategoryLevel>
<CategoryName>widgets</CategoryName>
<CategoryParentID>2468</CategoryParentID>
</Category>
The database has catid, catlevel, catname and parentid tables.
How do I parse this file into my database so that each <Category>data</Category> entry in the xml file is saved in its own row on the database? (CategoryID is different for each product)
I've poured over Google and these forums but there just doesn't seem to be a simple answer, preferably in php, that gives an example of the mysql query to use. I wish there was a sticky on XML to MySQL basics.
I don't have a semi-working best effort, yet, any guidance most welcome.