December 3rd, 2012, 12:12 AM
Embedding HTML in XML
By using the below code we can make text bold by embedding
HTML in XML
But how can we make same text as flash and how to increase the font size and color by embedding the HTML tags in XML
content=" <b>Hi how are you doing?</b>" >
December 16th, 2012, 01:06 AM
Inside XML, replace "<" with "& l t ;" and ">" with "& g t ;" ?
Last edited by hdewantara; December 16th, 2012 at 01:17 AM.
December 16th, 2012, 05:40 PM
The proper, and best, way to do it requires you to change your structure slightly so that the "content" value is the content between the <user> and </user> tags. This will let you use CDATA to enclose the HTML values so that you're guaranteed that there's no issues.
Using <![CDATA[ and ]]> basically tells the XML parser that everything inside this area is to be used exactly as it's written.
<![CDATA[<b>Hi how are you doing?</b>]]>
December 21st, 2012, 03:33 AM
Try using CDATA, a CDATA section starts with "<![CDATA[" and ends with "]]>":