Jibx gives error if XML contains special characters like &. I need to correctly bind text in attributes to corresponding java property. I cannot use style="cdata" as its an attribute not child tag. my XML contains -
<Comments>
<Comment Name="Res_Notes" Text="BED PREFERENCE: http://www.abcd.com?a=b&c=d"/>
</Comments>
How can I handle it?
The Text attribute contains URL (with get parameters seperated by ampersand) so I cannot replace &
with &
otherwise the URL will become invalid.
Is there any way to handle this at JibX level??