You are here: Re: Working with PHP, XML, MySQL « PHP Programming Language « IT news, forums, messages
Re: Working with PHP, XML, MySQL

Posted by Aggelos on 03/02/07 17:49

On Mar 2, 3:22 pm, "NC" <n...@iname.com> wrote:
> On Mar 2, 2:43 am, "Aggelos" <djje...@gmail.com> wrote:
>
>
>
> > I am having an XML file that contains booking details. These booking
> > details are supposed to get gennerated from a booking application.
> > I then need to build a system that will process those XML files and
> > store them inside a MySQL DB using PHP.
> > Is there any standard methodology to do such thing ?
>
> No. There are many PHP extensions that can be used to parse XML.
> Since you mentioned later in the thread that you are using PHP 4,
> here are two extensions that work with PHP 4:
>
> http://www.php.net/XMLhttp://www.php.net/DOMXML
>
> Cheers,
> NC

I've used miniXML which works quite well, but I am getting some weird
NOTICES
Notice: Only variable references should be returned by reference in /
PATH/TO/DIR/miniXml/classes/element.inc.php on line 610

:s
but i still have some problems as the XML structure has multiple
elements with the same name but different attributes

e.g.
+ <Supplier>
+ <Originator>
+ <PassengerDetail p="1">
+ <PassengerDetail p="2">
+ <PassengerDetail p="3">

and I don't know how to put these an array

array[PassengerDetail][1]
array[PassengerDetail][2]
array[PassengerDetail][3]

thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация