• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

greater/lower than signs converted to > and <

 
O. Ziggy
Ranch Hand
Posts: 430
Android Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what context are you outputting the data?
 
O. Ziggy
Ranch Hand
Posts: 430
Android Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48381
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"& 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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic