Home  |  Linux  | Mysql  | PHP  | XML
From:TerryA Date:Mon Feb  8 07:24:16 2010
Subject:Re: simplexml - can it do what I need?

Hi Carlos

I looked at the documentation for hours but don't see any solution. I'm
uploading a sample file here. The full file contains around 100 properties
but the uploaded file has just one. I need to extract data from this file to
write to a MySQL database. I have no problem in doing this until it comes to
the <elements>-><element> tags. I only need 3 of these elements. I can
extract the data by iteration but that does not help me to get the three
specific <element> tags that I need because there are some tags that appear
for some properties and not for others so the order is different. Here is
the file:
http://old.nabble.com/file/p27496211/annnonces.xml annnonces.xml
Thanks
Terry



--
View this message in context: http://old.nabble.com/simplexml---can-it-do-what-I-need--tp27481222p27496211.html
Sent from the PHP - General mailing list archive at Nabble.com.

Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
cvs: pecl /llvm phpllvm.cpp phpllvm_compile.cpp phpllvm_execute.cpp phpllvm_execute.h
Re: [PHP] php selecting multiple stylesheets
Re: [PHP] php selecting multiple stylesheets
Re: [PHP] removing an array from a compound array
LMPX.COM :: Linux, Mysql, Php, Xml



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants