Jump to content
php.lv forumi

XML errors iekšs IE, bet iekšs FF viss okey.


Recommended Posts

Posted

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.

Posted

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>
........
....
..

Posted
<?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>
......
...
..

Posted

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.

  • 10 months later...
Posted

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?

×
×
  • Create New...