• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to parse an XML file from a url and add its data in a database?

#2
[eluser]bretticus[/eluser]
XML-RPC is meant more as a system for a Web service (think SOAP or REST.) In other words, requests from the client will be interpreted as code calls on the server. The server will then return the results of the code ran. Not really what you are doing.

PHP has an excellent extension called SimpleXML. It basically maps an XML document to an object that is easy to traverse.

UPDATE

I see you are using SimpleXML already. My advice about XML-RPC still stands and you should follow the documentation for SimpleXML to parse it. See SimpleXML Examples.


Messages In This Thread
How to parse an XML file from a url and add its data in a database? - by El Forum - 08-25-2010, 10:30 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.