NBS Posted November 10, 2008 Report Share Posted November 10, 2008 Sveiki, izpalīdziet, kpc šāds errors ir: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- A semi colon character was expected. Error processing resource 'linkz'. Line 1... <link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_i... Šis errors rādās iekšs IE, bet iekšs FF normāli parādās XML outputs bez erroriem. Kods: http://paste.php.lv/8374?lang=php Lūdzu, izpalīdziet. Link to comment Share on other sites More sharing options...
andrisp Posted November 10, 2008 Report Share Posted November 10, 2008 Man liekas, ka & vajag aizstāt ar &. PS. Labāk jau būtu iekopējis gatavo XML nevis kodu, kas ģenerē. Link to comment Share on other sites More sharing options...
NBS Posted November 10, 2008 Author Report Share Posted November 10, 2008 Outputs no FF: <?xml version="1.0" encoding="UTF-8"?> <data> <item> <price>2694.199777</price> <brand></brand> <model></model> <manufacture_id></manufacture_id> <manufacture_link></manufacture_link> <image>http://linkz.lv/components/com_virtuemart/shop_image/product/a1fb699e1e0d5392a6b9ade09a079ae2.jpg</image> <thumb>http://linkz.lv/components/com_virtuemart/shop_image/product/9bb245c8c8c4f64f801b4182839279bd.jpg</thumb> <discount></discount> <sale></sale> <available></available> <condition>new</condition> <lv> <name>ATV 220</name> <desc></desc> <link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</link> <category>Kvadracikli > ATV 220</category> <category_link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</category_link> </lv> <ru> <name>ATV 220</name> <desc></desc> <link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</link> <category>Kvadracikli</category> <category_link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</category_link> </ru> </item> ........ .... .. Link to comment Share on other sites More sharing options...
andrisp Posted November 10, 2008 Report Share Posted November 10, 2008 Ok, bet par tiem & saprati ? http://en.wikipedia.org/wiki/XML#Entity_references Link to comment Share on other sites More sharing options...
NBS Posted November 10, 2008 Author Report Share Posted November 10, 2008 Aizvietoju & ar & , bet tas nelīdzēja un rāda tādu pašu kļūdu. Link to comment Share on other sites More sharing options...
andrisp Posted November 10, 2008 Report Share Posted November 10, 2008 Parādi to uzģenerēto XML, kāds tagad izskatās. Link to comment Share on other sites More sharing options...
NBS Posted November 10, 2008 Author Report Share Posted November 10, 2008 <?xml version="1.0" encoding="UTF-8"?> <data> <item> <price>2694.199777</price> <brand></brand> <model></model> <manufacture_id></manufacture_id> <manufacture_link></manufacture_link> <image>http://linkz.lv/components/com_virtuemart/shop_image/product/a1fb699e1e0d5392a6b9ade09a079ae2.jpg</image> <thumb>http://linkz.lv/components/com_virtuemart/shop_image/product/9bb245c8c8c4f64f801b4182839279bd.jpg</thumb> <discount></discount> <sale></sale> <available></available> <condition>new</condition> <lv> <name>ATV 220</name> <desc></desc> <link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</link> <category>Kvadracikli > ATV 220</category> <category_link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</category_link> </lv> <ru> <name>ATV 220</name> <desc></desc> <link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</link> <category>Kvadracikli</category> <category_link>http://linkz.lv/index.php?page=shop.product_details&category_id=125&flypage=shop.flypage&product_id=30&option=com_virtuemart&Itemid=12</category_link> </ru> </item> ...... ... .. Link to comment Share on other sites More sharing options...
NBS Posted November 10, 2008 Author Report Share Posted November 10, 2008 Uh, sorry andrisp pamanīju, ka vienā vietā aizmirsu nomainīt un viss aizgāja, liels paldies, par palīdzību. Neesmu tik ļoti zinošs XML, tagad vismaz zināšu, ka ir vajadzīgi noteikti mainīgie šiem simboliem. Link to comment Share on other sites More sharing options...
uldisb Posted October 4, 2009 Report Share Posted October 4, 2009 hola! bik pa citu tēmu, bet nu pārluki tie paši. tātad- ņemu xml fīdu no url un apstrādāju pēc savām vajadzībām (atlasu konkrētus ierakstus ar php DOM) problēma tajā ka uz ff, safari viss čik pik , bet uz ie ielāde uz 10sekundēm. urlis www.melodijas-telefonam.lv ir ieteikumi? Link to comment Share on other sites More sharing options...
briedis Posted October 4, 2009 Report Share Posted October 4, 2009 Principā ja darbojies ar php, tad nevajadzētu būt starpībai, vai ar ie vai ff skaties... Link to comment Share on other sites More sharing options...
Recommended Posts