How can I fetch a XML feed and write it to a MySQL database?
-
I'm not a XML crack, but maybe anyone here has a good answer for me :-) I have a XML Feed, like this one here: <music> <artist id=Madonna> <album id=Hang Up> <song>Push it</song> <song>Hollywood</song> </album> </artist> </music> now I want to put these data in a MySQL database for an easier handling and output. So what I want is a database like this: Music Artist | Album | Song Madonna | Hang Up | Push it Madonna | Hang Up | Hollywood anyones knows how I can do that? is there maybe a opensource script I can use? thanks
-
Answer:
I am a cracker jack xml guy... I remember writing a generic xml to mysql... it's not that hard, not exactly the format you want.. but your 'feed' is not valid xml in the first place.
Johanna B at Yahoo! Answers Visit the source
Related Q & A:
- How can I parse a complex XML with PHP and CDATA?Best solution by Stack Overflow
- How can I connect a printer wirelessly to my laptop without a router? Which printer would be the best?Best solution by Yahoo! Answers
- How Can I Create an XML to Create a Menu?Best solution by Drupal Answers
- How can I become a part time academic whilst already in a career?Best solution by Yahoo! Answers
- How Can i turn a black and white picture back into a colored picture?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.