问题描述
我已经在模板上设置了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>{$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>
有超过40k(产品),因此加载时间很长。而不是看到带有节点的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>
相反,我以这种格式看到它:
测试网站标签:www.testwebsite.co.uk,2020-09-08:/新的119826-619339 5059071658400女性成人119826 5059071658400是 http://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/299378 http://www.testwebsite.co.uk/images/ac_product_images/product_image_data/resizeandpad:900:1111/299379 库存11个测试网站GB HDNL 3.99 5059071658新119826-619340 50590716517女性成人119826 5059071658417是 http://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
我应该等待页面加载完成还是需要添加诸如output:txt / xml之类的脚本?
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)