Re: xml

From: Date: Mon, 10 Oct 2005 08:18:50 +0000
Subject: Re: xml
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21308@lists.php.net to get a copy of this message
Jay Callicott wrote:
Hello Group, Hi Jay,
I am running a web service and I would like to maybe broadcast the database in XML. I have using the RSS_Parser package before but I haven't ever played with exporting a whole database to XML. I was thinking of using the XML_Serializer package to serialize the database and save to file so that sites using the service could download the XML once a day and then convert that data into their own system's database.
If your database is at least reasonably large, and performance is an issue, I suggest that you use the XML parsing extensions of PHP, and not PEAR packages. I would reccomend PHP5 with either DOM (faster) or SimpleXML (less memory-intensive).
The idea behind this is making the database flexible so that different systems could read the data. I am kind of an XML newbie but am I right that SOAP is used to transport XML packets? Is that something I need to invoke manually or does that occur behind the scenes?
You have multiple choices here, you can use XML-RPC, SOAP, REST ... . The first 2 are available as PEAR packages.
I know with the RSS Parser I just give the link to the remote file and the parser handles all that for me. I don't know if XML_Serializer handles that as well. I don't even know if I'm going about this the right way. Does anyone have a suggestion of sharing my database in another way? I thought this would be helpful for people who don't necessarily want to use MySQL.
In which way do you want to share it? Do you want to give others real-time updates or simply transfer the schema and the information? Is security an issue or do you simply need to send the data? Give us more details so we might help.
Thanks! Jay Robert


« previous php.pear.general (#21308) next »