File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
Web application clustering
Passing values from child to parent form
parsing data and storing in the xml
Question reg. Pass By Value
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat