0

I have an XML file called categories.xml. Here is a sample of the file:

<?xml version="1.0" encoding="UTF-8"?>
<categories>
<category>
<filter>julyfourth</filter>
<name>4th Of July</name>
</category>
<category>
<filter>accessories</filter>
<name>Accessories</name>
</category>
.
.
.

For each category I need to add its data to the tblCategories table. How would I go about doing this? Any help is appreciated, thanks!

0

1 Answer 1

1

Did you even look for an answer http://dev.mysql.com/doc/refman/5.5/en/load-xml.html

Sign up to request clarification or add additional context in comments.

1 Comment

What other sort of XML is there?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.