Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
So what do I need hearing it for ? I just answered the guy (what he needed was help, not punches & slaps from wiseguys). "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >Well, I've, and I also have to say that the XML-support in PHP lacks > >any usability… >

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Raditha Dissanayake
Well, I've, and I also have to say that the XML-support in PHP lacks any usability… I am sorry to say this but the above comments indicates a lack of understanding about xml, xml parsing and PHP. The php xml parser is based on expat. expat was written by james clark a person who worked on some

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
Maybe this will help. Just made it (nedded it myself) and I saw your post. parser = xml_parser_create(); xml_set_object($this->parser, $this); xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); xml_set_element_handler($this->parser, 'startElement', 'endElement');

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
The 'sample.xml' file: 1234 3,4 kg 12345 3,1 t "Victor spång arthursson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] 2003-11-17 kl. 17.06 skrev Chris Hayes: >> Need to read a xml-file into an array, but searching around I havent >> found a

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
Maybe this will help. I just made it: class XMLParser { var $depth = 0; var $parser; var $text; var $cdata = array(); function XMLParser() { $this->parser = xml_parser_create(); xml_set_object($this->parser, $this); xml_parser_set_option($this->parser, XML_

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Burhan Khalid
Victor Spång Arthursson wrote: 2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Victor Spång Arthursson
2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also have to say that the XML-support in

Re: [PHP] easy and simple way to read xml into array

2003-11-17 Thread Chris Hayes
At 15:47 17-11-03, you wrote: Hi! Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] easy and simple way to read xml into array

2003-11-17 Thread Victor Spång Arthursson
Hi! Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php