| Author |
Formatting in XML
|
sulabh kapoor
Greenhorn
Joined: Oct 10, 2009
Posts: 16
|
|
Hi,
Please help me solve this issue:
I am trying to create an XML from a string which I am passing from java class.
In the string, I am forwarding some hyperlinks and some data which I want to get displayed as BOLD or ITALIC but XML doesn’t retain that.
Thanks with Regards,
Sulabh
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
displayed as BOLD or ITALIC
Displayed in what client? HTML, MS Word DOC, PDF. RTF ?
Bill
|
Java Resources at www.wbrogden.com
|
 |
sulabh kapoor
Greenhorn
Joined: Oct 10, 2009
Posts: 16
|
|
|
HTML
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
Are you just trying to have a browser read an XML document and display it?
XML markup that is not HTML will confuse any browser with strange results.
Bill
(If so, I recommend you use FireFox with the Firebug plugin to see what the browser is trying to cope with.)
|
 |
Sachin Sthalekar
Greenhorn
Joined: Mar 19, 2010
Posts: 2
|
|
|
try enclosing the xml formatted string in a <cdata> section
|
 |
 |
|
|
subject: Formatting in XML
|
|
|