• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatting in XML

 
sulabh kapoor
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
displayed as BOLD or ITALIC


Displayed in what client? HTML, MS Word DOC, PDF. RTF ?

Bill
 
sulabh kapoor
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try enclosing the xml formatted string in a <cdata> section
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic