Details
-
Type: Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: 1.0.2
-
Component/s: None
-
Labels:None
Description
If the attribute is flat_no
the output xml is <flat__no>
two (__) underscore are generated, not one _
Hi, the issue seems to be here:
Class: com.thoughtworks.xstream.core.DefaultClassMapper
Method: mapNameToXML
if (c == '$')
{ result.append("_DOLLAR_"); }else if (c == '_')
{ result.append("__"); }else
{ result.append(c); }An extra "" is appended whenever an underscore "" is encountered. I am not sure why this is done.
Can someone provide details? I want to contribute with a fix for this one, if this is considered an issue.