hoho Posted August 1, 2007 Report Share Posted August 1, 2007 Man ir XML fails ar saturu: - <reos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <apartment> <external_id>123</external_id> <edit_date>2006-12-04 06:13:02</edit_date> <transaction_type>TRANSACTION_SALE</transaction_type> <status>REO_STATUS_DELETED</status> <owner_username>maris_a</owner_username> <county>COUNTY_JURMALA</county> </apartment> </reos> utt . sludinajumiem ir iespeejami vairaaki tipi apartment, land, flat utt. kaa ar php dabuut tiesi to tipu, sajaa gadiijumaa - apartment ar simplexml_load_file man nesanak :( Link to comment Share on other sites More sharing options...
andrisp Posted August 1, 2007 Report Share Posted August 1, 2007 Parādi, ko esi uzrakstījis. Link to comment Share on other sites More sharing options...
dmitriy Posted August 1, 2007 Report Share Posted August 1, 2007 (edited) Nezinu vai palīdzes, bet ja tev vajag tikai apartment kontentu tad: http://paste.php.lv/5848 Edited August 1, 2007 by dmitriy Link to comment Share on other sites More sharing options...
hoho Posted August 1, 2007 Author Report Share Posted August 1, 2007 Paldies, bet man vajag nevis to koda gabalu dabuut, bet to tipa nsaukumu, piemeeram <reos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <XXX_TYPE> <external_id>123</external_id> <edit_date>2006-12-04 06:13:02</edit_date> <transaction_type>TRANSACTION_SALE</transaction_type> <status>REO_STATUS_DELETED</status> <owner_username>maris_a</owner_username> <county>COUNTY_JURMALA</county> </XXX_TYPE> <XXX_TYPE> <external_id>123</external_id> <edit_date>2006-12-04 06:13:02</edit_date> <transaction_type>TRANSACTION_SALE</transaction_type> <status>REO_STATUS_DELETED</status> <owner_username>maris_a</owner_username> <county>COUNTY_JURMALA</county> </XXX_TYPE> <XXX_TYPE> <external_id>123</external_id> <edit_date>2006-12-04 06:13:02</edit_date> <transaction_type>TRANSACTION_SALE</transaction_type> <status>REO_STATUS_DELETED</status> <owner_username>maris_a</owner_username> <county>COUNTY_JURMALA</county> </XXX_TYPE> </reos> un man vajag dabuut tikai to vienu vaardinju - XXX_TYPE, tipu, kas var buut land, flat, house utt. Link to comment Share on other sites More sharing options...
v3rb0 Posted August 1, 2007 Report Share Posted August 1, 2007 vispirms, kura php versija? kādu laiciņu atpakaļ te tika cilāta xml parsēšana, no tā nekas neder? Link to comment Share on other sites More sharing options...
dmitriy Posted August 1, 2007 Report Share Posted August 1, 2007 (edited) nedaudz nofiksēju: http://paste.php.lv/5850 Edited August 1, 2007 by dmitriy Link to comment Share on other sites More sharing options...
GedroX Posted August 1, 2007 Report Share Posted August 1, 2007 Kods, rezultāts. PHP 5.2.3, Win Link to comment Share on other sites More sharing options...
Paulinjsh Posted August 1, 2007 Report Share Posted August 1, 2007 ja php 5.x tad tīri smuki var izmantot http://lv.php.net/simplexml Link to comment Share on other sites More sharing options...
Recommended Posts