aspose file tools
The moose likes Java in General and the fly likes Printing & in the XML Document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing & in the XML Document" Watch "Printing & in the XML Document" New topic

Printing & in the XML Document

Steven Rodeo
Ranch Hand

Joined: Mar 06, 2008
Posts: 72
HI Folks,
I am using the following code snippet

To Generate the following output in my XML document

The above code snippet gives:

<DISPLAY> &\amp ; quot;8947494 &\amp ; quot; </DISPLAY>
( I had to use the escape characters as the above won't print the (&)amp

Desired output is:

<DISPLAY> &quot;8947494&quot; </DISPLAY>

Please help!
jQuery in Action, 2nd edition
subject: Printing & in the XML Document