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
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: 12271
    
    1
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
    
    1
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Formatting in XML
 
Similar Threads
is there a length restriction in getting value for xsl:value-of
anyone from mumbai
Special character string display
Transform and Validation using sax parser :
how to handle xml as strings?