On Wed, July 11, 2007 7:48 pm, Jeff Griffiths wrote: > Richard Lynch wrote: >> On Wed, July 11, 2007 4:40 pm, Tijnema wrote: >>> Except for the OO, I don't see anything that can't be done in PHP4, >>> while it can be done in PHP5. Some workarounds are maybe needed, >>> but >>> it mostly doesn't require more than 10 lines of PHP code extra. >> >> The SOAP / XML stuff is like night and day. >> >> You're not talking 10 lines of code. >> >> You're talking hundreds of lines of wack-o code that doesn't really >> do >> the job right, and with some squeegy hacks to get at attributes >> buried >> within the XML tags, if you can get to them at all... > > That reminds me of one of my all-time fave bits in the online docs - > all the comments for xml_parse_into_struct(): > > http://ca.php.net/xml_parse_into_struct > > Basically, *years* of people sharing various generic 'xml2array'-like > functions and classes that would work in both 4 and 5.
I don't think you can actually call any of them "working" though... :-) Seriously, they all have some kind of irresolvable issue that you're going to run into sooner or later if you try to parse XML from a diverse set of sources. Anybody using PHP 4 for heavy SOAP/XML usage is just daft, imho. :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php