Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Web Service < comes out as & lt;

Status
Not open for further replies.

hise

Programmer
Oct 24, 2003
15
US
Hi:

I'm working on a project that involves C# and Java webservices. When I get the response back from the C# service in java, the result has all the <, and >, replaced with & lt; and & gt;.

Does anyone know why this is happening?

Thanks a gagillion.

hise
 
In XML, &lt and &gt are '<' and '>' respectively (lt = less than, gt = greater than).

Apparently, your Java app is reading the XML stream literally (E.G. without converting the character references). Why is this happening and how do you prevent it? That question may be better suited for the Java forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top