Hi,
How can i use common html tags like <br> <p> in XML.
Thanks in advance.
You would need to escape the HTML tags before putting them in the XML document.
<xml><tag><b>A bold tag</b></tag></xml>
The PHP function htmlentities() can do this for you automatically.
Thanx 4 the reply.
But XML is creating problems with sinqle quotes also. Is there any specific functions in XML to treat the single quote. I am using CDATA with htmlentities. But unfortunatly browser is not displaying after the single quote ' . What may be the probable cause.
Thanx
XML doesn't have any functions at all. Without seeing how you're trying to display the XML it's hard to see what the problem is, but if you look at the manual entry for [man]htmlentities[/man] you'll see that it can replace single quotes by entities as well.