Rss 如何在带有标记的浏览器中显示Atom 1.0 xml提要?
我已经在模板上设置了atom xml提要,它生成了xml。 模板为:Rss 如何在带有标记的浏览器中显示Atom 1.0 xml提要?,rss,feed,atom-feed,google-base,Rss,Feed,Atom Feed,Google Base,我已经在模板上设置了atom xml提要,它生成了xml。 模板为: <?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>{$
<?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>
{$config.company_name}
{$datetime}
4.99
11库存测试网站GB HDNL 3.99 5059071658新119826-619340
50590716517成年女性119826 50590716517真实
4.99
我应该等待页面加载完成,还是需要添加一些脚本,比如output:txt/xml
谢谢
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>