-
Notifications
You must be signed in to change notification settings - Fork 41
Self-closing tag, xml to pojo fail #27
Comments
Could you give a specific example: XML input + how you initialize the parser? |
I met the same issue.
the XML input:
|
does someone have solutions? |
@boomsya You may try to convert xml string to json string with help of underscore-java library. Gson gson = new Gson();
Staff staff = gson.fromJson(U.xmlToJson(xmlString), Staff.class); |
Hi , I tried to convert xml to a java object
if I put a self-closing tag like < attribute />
the converter went wrong.
is this supported in gson-xml ?
thanks !
The text was updated successfully, but these errors were encountered: