Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #2038
| From | JohnT <john@example.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Read records from XML File |
| Date | 2011-06-09 09:42 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <isq4i8$a0o$1@dont-email.me> (permalink) |
| References | <2348d4d0-f19c-40f3-8682-b434b7722887@r33g2000prh.googlegroups.com> |
On Thu, 09 Jun 2011 02:28:18 -0700, Sarah wrote: > Hi! I've an URL that returns me an XML file with this structure > > <events> > <event> > <title>.dsfdsfd </title> > .... > > Ho can I read each item and save in my local DB?? > Two choices: 1) You can parse the XML file yourself. You can use regular expressions to extract the data you want to put into the DB 2) Use the php xml parser functions: http://uk.php.net/manual/en/book.xml.php The php xml functions are quite complicated to use, so for a simple XML file, it may be easier to do it yourself. Regards JohnT
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Read records from XML File Sarah <dandi.box@gmail.com> - 2011-06-09 02:28 -0700
Re: Read records from XML File JohnT <john@example.com> - 2011-06-09 09:42 +0000
Re: Read records from XML File "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-06-09 14:27 +0200
Re: Read records from XML File Sarah <dandi.box@gmail.com> - 2011-06-09 06:54 -0700
Re: Read records from XML File "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-06-09 16:15 +0200
Re: Read records from XML File Michael Fesser <netizen@gmx.de> - 2011-06-09 11:43 +0200
csiph-web