This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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!
I agree. Here's the link:
subject: Printing & in the XML Document
Similar Threads
Passing values from child to parent form
parsing data and storing in the xml
Question reg. Pass By Value
Web application clustering
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat