The moose likes XML and Related Technologies and the fly likes Formatting in XML Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Formatting in XML" Watch "Formatting in XML" New topic
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: 11691
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: 11691
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
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture