Quantcast
Viewing all articles
Browse latest Browse all 47

How to display Atom 1.0 xml feed in browser with tags?

I already set the atom xml feed on my template and it produces the xml.Template is :

<?xml version="1.0"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0" xmlns:c="http://base.google.com/cns/1.0"><title>{$config.company_name}</title><link href="http://{$smarty.server.HTTP_HOST}/" rel="alternate" type="text/html"/><updated>{$datetime}</updated><author><name>{$config.company_name}</name></author><id>tag:{$smarty.server.HTTP_HOST},{$smarty.now|date_format:"%Y-%m-%d"}:/</id>    {foreach from=$products item=product}<entry><g:condition>new</g:condition><description><![CDATA[{if empty($product.product_description)}{if empty($product.product_copy)}{$product.product_name|escape:'html':'UTF-8'}{else}{$product.product_copy|escape:'html':'UTF-8'}{/if}{else}{$product.product_description|escape:'html':'UTF-8'}{/if}]]></description><g:google_product_category><![CDATA[{$product.google_base_category|htmlentities}]]></g:google_product_category><g:product_type>        .....(other tags and requirements)</entry>     {/foreach}</feed>

There are more than 40k (products) so loading time takes long. Instead of seeing the xml output with nodes (the format below) :

    This XML file does not appear to have any style information associated with it. The document tree is shown below.<Products><Product><MerchantSKU><![CDATA[ 69792 ]]></MerchantSKU><ProductName><![CDATA[ Lace Up Rib Bodysuit ]]></ProductName><Brand><![CDATA[ ]]></Brand><ProductURL>http://www.selectfashion.co.uk clothing s043 1404 052_ivory html</ProductURL> <ImageURL>http://www.selectfashion.co.uk/images/ac_product_images/product_image_data/resizeandpad:500:500/219267</ImageURL><Price><![CDATA[ 4 00 ]]></Price><Condition>New</Condition><ProductDescription><![CDATA[ ]]></ProductDescription><StockAvailability>Y</StockAvailability><Shipping>0.00</Shipping></Product>

Instead, i am seeing it in this format:

Test Website tag:www.testwebsite.co.uk,2020-09-08:/ new 119826-6193395059071658400 female adult 119826 5059071658400 truehttp://www.testwebsite.co.uk/black-girls-camo-side-cycling-shorts-s051-2303_black.html/505900/4.99 http://www.testwebsite.co.uk/images/ac_product_images/product_image_data/resizeandpad:900:1111/299378http://www.testwebsite.co.uk/images/ac_product_images/product_image_data/resizeandpad:900:1111/29937911 in stock testwebsite GB HDNL 3.99 5059071658 new 119826-61934050590716517 female adult 119826 5059071658417 truehttp://www.testwebsite.co.uk/black-girls-camo-cycling-shorts-s051-black.html/5059071658417/4.99 http://www.testwebsite.co.uk/images/ac_product_images/product_image_data/resizeandpad:900:1111/299378

it seems there is no css in head but nothing

Should i wait the page until loading finishes or need to add some script like output:txt/xml ?

Thanks


Viewing all articles
Browse latest Browse all 47

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>