Hi - can somebody pls. tell me how to use 'Span Tags' to increase Font size of TEXT in Red below ?
Below is the original XML code.

<?xml version="1.0" encoding="utf-8"?>
<news>
<settings
linesColor = "0x424646"
backGroundAlpha = "50"
backGroundColor = "0x363B3D"

thumbsBackGroundColor = "0x404546"
thumbsPreloaderColor = "0xCCFF33"

listItemIconColor = "0xCCFF33"
listItemBackGroundColor = "0x444A4D"

buttonsNextPrevIconColor = "0xCCFF33"

buttonCloseColor = "0xCCFF33"
buttonCloseOutlineColor = "0x5C6567"
buttonCloseBackGroundColor = "0x444A4D"

scrollerColor = "0xCCFF33"
scrollerOutlineColor = "0x7D7979"
scrollerBackGroundColor = "0x2D3032"
scrollBarBackGroundColor = "0x3F4446"

xmlPreloaderColor = "0xCCFF33"
/>
<title><![CDATA[<font color="#CCFF33">Latest news</font>]]></title>
<items>
<item>
<unique_deep_link><![CDATA[Latest news 1]]></unique_deep_link>
<date><![CDATA[01/05/2009]]></date>
<detailDate><![CDATA[<font color="#CCFF33">01/05/2009</font>]]></detailDate>
<title><![CDATA[Lorem ipsum dolor sit amet]]></title>
<text><![CDATA[Lorem ipsum dolor sit amet, <b>consectetur adipisici elit</b>, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. <font color="#CCFF33">Ut enim ad minim veniam</font>, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur. Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur. Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]]></text>

Mave

Hi Mave,

Dont see why we skipping parsing everything. none the less. I would just as use XSL.

Here's an example of some basic styling.

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="news">
  <html>
  <body>
  	<h2><xsl:value-of select="title"/></h2>
    <xsl:for-each select="//item">
      <xsl:sort select="date"/>
      <p><b><xsl:value-of select="unique_deep_link"/></b></p>
      <p><xsl:value-of select="date"/></p>
	  <p><xsl:value-of select="detailDate"/></p>
	  <p><xsl:value-of select="title"/></p>
	  <span style="color:red"><xsl:value-of select="text"/></span>
    </xsl:for-each>
  </body>
  </html>
</xsl:template>

</xsl:stylesheet>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.