wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 4167
    
  21

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: 38057
    
  22
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: greater/lower than signs converted to &gt; and &lt;
 
Similar Threads
Data deleted while getting data from table using hibernate.
effect of overriding equals on Sets?
recursive data structure
Generics questions
Redisplay info when a user goes back to previous page