I am completely new to parsing XML. I am trying to take cNet feeds and parse them, just showing the merchantName and price, with the merchantName acting as a link to the merchant.
The XML I'm testing from can be found here: http://cooltechzone-cnet.com.com/401...ltechzone-cnet
This is my XSL document:
And I get this error on my pageCode:<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html [16]"/> <xsl:template match="/"> <table> <tr> <td><b>CoolTechZone.com Deals</b></td> </tr> <tr> <td> <xsl:apply-templates mode="links"/> </td> </tr> </table> </xsl:template> <xsl:template match="item" mode="links"> <a href="{@link}"><xsl:value-of select="merchantName"/></a> <xsl:value-of select="price"/><br/> </xsl:template> </xsl:stylesheet>
Any help is greatly appreciated.Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in /home/sunspot/public_html/cooltechzonedev/OLD/components/com_content/content.html.php on line 504
XSLT processing error: XML parser error 4: not well-formed (invalid token)
Thanks



Bookmarks