aspose file tools*
The moose likes XML and Related Technologies and the fly likes Formatting in XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
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: 12803
    
    5
displayed as BOLD or ITALIC


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

Bill
sulabh kapoor
Greenhorn

Joined: Oct 10, 2009
Posts: 16
HTML
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Formatting in XML