This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes greater/lower than signs converted to > and < Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "greater/lower than signs converted to &gt; and &lt;" Watch "greater/lower than signs converted to &gt; and &lt;" New topic
Author

greater/lower than signs converted to &gt; and &lt;

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

I am trying to output the following



but the data is coming out as shown below..


Does anyone know why this is happening?

[ July 25, 2008: Message edited by: O. Ziggy ]
[ July 25, 2008: Message edited by: O. Ziggy ]
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3946
    
  17

In what context are you outputting the data?


Steve
O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

The data is sent via SOAP/Webservice using Axis/Rampart.

The message is built by Axis but i have to add the message body(payload) which i did as shown below.



The problem is that the < > are being converted to & l t; and & g t (without the spaces);
[ July 25, 2008: Message edited by: O. Ziggy ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
The ampersand-lt; and ampersand-gt; are normal HTML tags for the greater/less than or arrowhead symbols. If you go back to your original post and use the pencil-and-paper icon to try editing you will see that happens on the Ranch server too.
Can't help you any further, I am afraid.
Dan Walin
Ranch Hand

Joined: Nov 11, 2003
Posts: 109
"& lt" and "& gt" are what I think are called xml "entities" - it means they code for "<" and ">" because those symbols serve a purpose in an xml file. I would bet that method: setIEEdifactString is doing this conversion.

[ July 25, 2008: Message edited by: Dan Walin ]
[ July 25, 2008: Message edited by: Dan Walin ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: greater/lower than signs converted to &gt; and &lt;
 
Similar Threads
Redisplay info when a user goes back to previous page
effect of overriding equals on Sets?
recursive data structure
Generics questions
Data deleted while getting data from table using hibernate.