I am using SimpleXML to generate XML in a web service. But what I find with SimplexML is that the resulting code includes an attribute containing the underlying Java class type of the objects being represented.
So if I am using a Java ArrayList of a class of mine which is stored in the recentVisualisation
element below, I get:
<User_Recent_Visualisations>
<userNo>025347_17042011_1303046799093</userNo>
<recentVisualisations class="java.util.ArrayList">
<recent_Visualisation recentVisNo="9" recentVisName="fred">
<createdDateTime>2013-06-28T14:09:17</createdDateTime>
</recent_Visualisation>
...
</User_Recent_Visualisations>
Does anyone know if the attribute class="java.util.ArrayList">
can be suppressed?