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

    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;

    Thanks!

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

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

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,044
    Rep Power
    20

    Default

    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, 08:10 AM
  2. Escape Sequence
    By Punter in forum New To Java
    Replies: 4
    Last Post: 02-10-2009, 07:04 AM
  3. Escape Sequence \t does not display.
    By dreamingofgreen in forum New To Java
    Replies: 7
    Last Post: 07-22-2008, 04:50 AM
  4. Escape sequence problem
    By eva in forum New To Java
    Replies: 2
    Last Post: 01-21-2008, 10:15 PM
  5. Frog Escape 0.0.1 alpha
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 08: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
  •