Results 1 to 3 of 3
  1. #1
    higashij is offline Member
    Join Date
    Sep 2009
    Rep Power

    Default Escape Characters in xml

    Hi! When sending an xml string through a web service there are escape characters replacing the < > tags. I was wondering if that's normal, or is there a way to prevent that from happening.

    Ex: Sending <TestResponse><Name>Test Name</Name></TestResponse>
    Receiving &lt;TestResponse&gt;&lt;Name&gt;Test Name&lt;/Name&gt;&lt;/TestResponse&gt;


  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    does placing them into <![CDATA[ . ]]> tags help ?

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power


    If the xml string is simply a parameter then that is perfectly normal.
    It will either escape them, as in your case, or it will stick them in a CDATA block, depending on the tool used.

    The reason for this is that the xml is simply a string as far as the web service is concerned, and not xml.

Similar Threads

  1. Need help with escape characters
    By jayjones149 in forum New To Java
    Replies: 1
    Last Post: 02-15-2010, 09:10 AM
  2. Escape Sequence
    By Punter in forum New To Java
    Replies: 4
    Last Post: 02-10-2009, 08:04 AM
  3. Escape Sequence \t does not display.
    By dreamingofgreen in forum New To Java
    Replies: 7
    Last Post: 07-22-2008, 05:50 AM
  4. Escape sequence problem
    By eva in forum New To Java
    Replies: 2
    Last Post: 01-21-2008, 11:15 PM
  5. Frog Escape 0.0.1 alpha
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 09:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts