XStream

adding extra underscore _ to tagname

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Hi It seems there is an issue while creating XML

I have a variable called bid_value

When I converted using XStram xml is created with bid__value adding an extra underscore to variable name. Could you please explain the behaviour for this and also how can I get <?xml .....?> string to newXml() method.

Thanks
Suresh

Activity

Hide
Joe Walnes added a comment -

(I recommend using the XStream mailing list for asking questions.)

The reason is that XStream treats an underscore _ as a special character to do escape codes (in a similar fasion to the backslash \ in Java strings).

Show
Joe Walnes added a comment - (I recommend using the XStream mailing list for asking questions.) The reason is that XStream treats an underscore _ as a special character to do escape codes (in a similar fasion to the backslash \ in Java strings).
Hide
Joe Walnes added a comment -

I am happy to reconsider this as it has been causing issues for many people. Please come and discuss it with me on the XStream mailing list, so we can find the best solution.

http://xstream.codehaus.org/mailing-lists.html

Thanks
-Joe

Show
Joe Walnes added a comment - I am happy to reconsider this as it has been causing issues for many people. Please come and discuss it with me on the XStream mailing list, so we can find the best solution. http://xstream.codehaus.org/mailing-lists.html Thanks -Joe

People

  • Assignee:
    Unassigned
    Reporter:
    Suresh T
Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: