FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Read records from XML File
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Read records from XML File [message #174373 is a reply to message #174372] Thu, 09 June 2011 09:42 Go to previous messageGo to previous message
JohnT is currently offline  JohnT
Messages: 16
Registered: April 2011
Karma:
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: me? pl's visit
Next Topic: esytilkc
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 17:16:10 GMT 2024

Total time taken to generate the page: 0.05468 seconds